简体   繁体   中英

“Always-indent” style for visual studio express

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 then Text Editor -> All Languages -> Tabs There you can specifiy:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM