Is there a way to make indenting less stupid?

Go To Last Post
4 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Now maybe it's me who is stupid, having not found the obvious configuration switches, but as far as I can tell, Studio only knows about two indenting positions - where the last line began, or no indenting at all. This makes multi-level indenting a pain. In particular, this situation really annoys me:

something1..
{
  something2..
  {
    something3..
    <-now my cursor is here, and I want to do a close brace, and if I hit backspace or left-arrow the cursor goes all the way back to column 0 and I have to tab out to the correct position for the close brace.

So is there any way to prevent that behavior and just move back one tab's worth?

Mike

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I'd forget trying to use Studio's hugely underspecified editor. Use one that knows all about "intelligent indents" and rely on the fact that Studio will spot that "source file has changed outside the editor - do you want to reload file?"

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If you type the closing brace on a new line all the tabs before it will be inserted. Then left arrow and backspace.

That leaves the cursor before the bracket though, so faster is space, backspace, backspace, }

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

This is actually the very reason I switched over to using VS. Smart detents and the intelisense both added up to a MUCH nicer programming environment for me.

 

Clint