Did you know... what's the difference between smart indenting and block indenting? - #101
Smart indenting is the option you want provided you want the cursor to be properly indented whenever you press enter or arrow up and down through the code. An example is when you create a new method called foo(), then hit enter. You’ll notice the cursor will automatically indent itself. If you continue to hit enter, the cursor will remain indented. Not all languages support this smart indenting, but if it does, this should be the default setting for that language.
Block indenting is similar to a document editor. The difference here is when you type in foo() and hit enter, only that first new line is automatically indented. The next newline places the cursor at column 0.
None will not indent any new lines. You will have to indent everything manually.
Technorati tags: VS2005Tip, VS2008Tip
Comments
Anonymous
December 05, 2007
PingBack from http://msdnrss.thecoderblogs.com/2007/12/06/Anonymous
December 06, 2007
The comment has been removedAnonymous
December 08, 2007
The comment has been removedAnonymous
July 28, 2008
When you use a tool day-in and day-out you typically want it to be accessible as quickly as possibleAnonymous
December 18, 2008
本篇包括tip101-tip110http://www.watch-life.net/visual-studio/visual-studio-2008-tip-day-11.html#101、块缩...Anonymous
March 15, 2009
Структурный отступ ( Smart indenting) используется, если вы хотите, чтобы курсор находился в нужной позиции