Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... what's the difference between smart indenting and block indenting? - #101

Smart, Block, and No indenting options 

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: ,
Posted: Thursday, December 06, 2007 3:00 AM by saraford

Comments

Noticias externas said:

This tip and yesterday's tip were my least favorite features to test. It would just drive me crazy

# December 7, 2007 6:10 AM

Sara Ford's WebLog said:

This tip and yesterday's tip were my least favorite features to test. It would just drive me crazy trying

# December 8, 2007 11:00 PM

Readed By Wrocław NUG members said:

When you use a tool day-in and day-out you typically want it to be accessible as quickly as possible

# July 28, 2008 11:26 AM

xjb said:

# December 18, 2008 7:41 PM

Секреты Visual Studio said:

Структурный отступ ( Smart indenting) используется, если вы хотите, чтобы курсор находился в нужной позиции

# March 16, 2009 3:21 AM
New Comments to this post are disabled
Page view tracker