Visual Studio (2005,2008,2010) Tips and Tricks.
#25 Increase and Decrease line indentation in Visual Studio
Wednesday, January 28 2009
Tabbing / Indenting / Undenting (ok that’s now a word, but it sounds good) in Visual Studio is very simple. There are several options to get your code formatted just the way you like it. This video trick shows you how.
Snippets / Notes:
[TAB] (With a line [or lines] highlighted) will further indent
[SHIFT]+[TAB] (With a line [or lines] highlighted) will decrease the current indentation
Visual Studio Tip / Trick #025 English Transcription:
Today’s visual studio trick of the day, trick No. 25 is a video re-post of Sara Fords original trick published in text In August of 2007. Today’s trick is indenting your current line from the tool bar, so if you increase your indentation you can see that, that line is moved further to the right. And then if you decrease you can see it is moved further to the left. Now you can also highlight multiple lines and then increase or decrease that line selection and as an added bonus you can also press your [TAB] key obvious that make sense at the beginning of the line. You can also do [SHIFT]+[TAB] which in this example would be same as backspace. But if you highlight multiple lines then you can [TAB] and [TAB] will indent all of these lines for you as well as [SHIFT]+[TAB] will decrease the opening or beginning of that line. So [TAB] and [SHIFT]+[TAB] will increase or decrease the indentation of that line. Then you can also use the tool bar here to decrease indentation and increase indentation of that line.
2 comment(s)
Shouldbn't this trick's name be...
"Increase and Decrease line indentation in Visual Studio" ...instead of...
"Increase and Decrease lines in Visual Studio"
Good Idea, Done.