"Always-indent" style for visual studio express

610 Views Asked by At

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?

1

There are 1 best solutions below

2
On

Go to Tools -> Options choose then Text Editor -> All Languages -> Tabs There you can specifiy:

  • Tab size
  • Indent size
  • Insert spaces (instead of a tab)