Is there a way to have Visual Studio (2012 Express) auto-indent like it is possible in XCode or Emacs? Saying auto-indent I mean that the IDE indents to the correct level when pressing TAB
no matter what position in the line the cursor is in.
I know I can press Ctrl+K, Ctrl+F
or Ctrl+K,D
to indent a document or selection, but this is kind of cumbersome. Writing code and just pressing TAB
to auto-indent the current line is just much faster. Is there a way to do this in VS?
Go to
Tools -> Options
choose thenText Editor -> All Languages -> Tabs
There you can specifiy: