Visual Studio: Replacing spaces with tabs and vice versa

To replace spaces with tabs:
  1. Select the text that contains the spaces you want to replace with tabs, or choose Select All from the Edit menu to select the entire file.
  2. From the Edit menu choose Advanced, then click Tabify Selection.

Found on MSDN. I've needed this about zillion times, but never knew it was built into Visual Studio.

Posted October 24, 2005 3:54 PM

Comments

Yep, but it can have some pernicious effects (replacing white spaces within quoted strings with tabs, for example...). Believe me, it`s a better job for regular expressions.

David Brabant, October 24, 2005 4:19 PM

Post a comment




Remember Me?

(you may use HTML tags for style)