Indentation shortcuts in Visual Studio

RBA picture RBA · Jan 26, 2012 · Viewed 287k times · Source

I'm new to Visual Studio 2010 and C#. How can I indent the selected text to left/right by using shortcuts?

enter image description here

In the Delphi IDE the equivalents are Ctrl+Shift+I and Ctrl+Shift+U

Answer

Mike Christensen picture Mike Christensen · Jan 26, 2012

Tab and Shift+Tab will do that.

Another cool trick is holding down ALT when you select text, it will allow you to make a square selection. Starting with VS2010, you can start typing and it will replace the contents of your square selection with what you type. Absolutely awesome for changing a bunch of lines at once.