22 October 2010

Edit.ConvertTabsToSpaces

Visual Studio has a command on the default Edit menu - Edit | Advanced | Untabify Selected Lines - which one would think allows you to, you know, untabify the selected lines by converting *all* tabs in the selection to spaces.

However, this command only converts leading and trailing tabs to spaces: not adequate.

It turns out - as documented on Sara Ford's excellent blog of Visual Studio tips and tricks - there is a command which does exactly what I want: Edit.ConvertTabsToSpaces.

I bound this command to a toolbar button as well as a keyboard shortcut - - and all is right with the world again.

No comments:

Post a Comment