Visual Studio: show whitespace and configure spaces instead of tabs
Posted by jpluimers on 2019/07/11
As I always forgets this and fresh Visual Studio installations favour tabs over spaces, here is how to get it into sane mode:
- show whitespace: [WayBack] Jeff Widmer’s Blog – How to show white space in Visual Studio
- Menu:
Edit
,Advanced
,View White Space
- Toggle shortcut keys:
- Ctrl R, Ctrl-W
- Ctrl E, S
- Menu:
- force spaces instead of tabs: [WayBack] Visual Studio 2013 Tips & Tricks: Indentation (Tabs and Spaces) | Ed Glogowski, [WayBack] Visual Studio replace tab with 4 spaces? – Stack Overflow
- Menu:
Tools
,Options
,Text Editor
,All Languages
(or a specific language),Tabs
,Insert Spaces
(the internal variable is calledInsertTabs
) - Shortcut keys:
- none, but you can create your own using a macro: Visual Studio 2010 macros to set “Insert spaces” or “Keep tabs” in Tools -> Options -> Text Editor -> C# -> Tabs page.
- Menu:
Related: [WayBack] Whitespace: The Silent Killer
–jeroen
Leave a Reply