I don't know what I did but I don't know how to get rid of those arrows on the left.
6 Answers
CTRL+R, CTRL+W : Toggle showing whitespace
or under the Edit Menu:
- Edit -> Advanced -> View White Space
[BTW, it also appears you are using Tabs. It's common practice to have the IDE turn Tabs into spaces (often 4), via Options.]
-
2hehe I toggled it on again by mistake XDDD Thank you!!! Anybody knows why this feature even exists? Isn't it infinitely annoying? Commented Dec 13, 2011 at 10:48
-
35@Vintharas: It exists because people like me keep it on ALL THE TIME, because we like always being aware of what we're inserting or how we're changing the file. Gives us more casual control over our environment. There are also cases where it's actually critical, such as inside strings that are getting parsed.– ThoughtCommented Jul 6, 2014 at 23:30
-
3I find it useful because our coding standards prohibit any trailing whitespace so this allows me to see any. I am not able to install add ons to fix it for me as we use the Express version.– StefanCommented Aug 28, 2014 at 7:43
-
3
-
10@MitchWheat Seems to me that most developer disagree with you. I suggest you read their comments. It might change your minds about using tabs programmers.stackexchange.com/questions/57/…– JSONCommented Aug 3, 2016 at 13:25
In Visual Studio 2010 the key sequence CTRL+E, S will also toggle display of whitespace characters.
-
I can confirm that this also works in Visual Studio 2013 Express.– jmstokerCommented Jun 2, 2014 at 21:00
-
1Ah that's interesting. I couldn't work out in what universe I could possibly have pressed CTRL-R, CTRL-W by mistake; but CTRL-E, S seems a bit more plausible. Commented Oct 7, 2014 at 8:39
-
That must have been what I hit on accident when going to toggle some comments (
CTRL-E, C
,CTRL-E, U
)– jocullCommented Oct 30, 2014 at 15:21 -
2
-
There are different default keyboard mappings available. CTRL-E, S is the sequence in one of them. CTRL-R, W is the sequence in another. Giving any individual sequence, though, is futile because they are all changed by a different setting, and can in any case be overridden. Commented Oct 28, 2022 at 14:09
If the Toggle Visual Space
icon shall be added to a Visual Studio toolbar of your choice, because it shall be turned on and off via mouse click, then follow this instruction:
Customize the desired toolbar
Click on
Customize...
Click on
Add Command...
Go to
Edit
and choseToggle Visual Space
Click on
OK
Tested with Visual Studio 2019 as well as Visual Studio 2022.
-
2That's what I was looking for - the wording that's used in that dialog, so I can add it to a toolbar rather than having to remember a key sequence! Commented Oct 28, 2022 at 14:11
-
1interesting, how I was suppose to find the button in this "add command" window? There are no search by name, and in the Edit/Advanced it is called "view white space"– yalovCommented Jul 18, 2023 at 12:55
In Visual Studio 2015 From the top menu
Edit -> Advanced -> View White Space
or CTRL + E, S
-
1There are different default keyboard mappings available. CTRL-E, S is the sequence in one of them. CTRL-R, W is the sequence in another. Giving any individual sequence, though, is futile because they are all changed by a different setting, and can in any case be overridden. Commented Oct 28, 2022 at 14:10
CTRL+SHIFT+* is the de-facto standard key combination for showing/hiding whitespace characters in all Microsoft products that support this feature.
P.S: * refers to 8- * key, not to numeric keypad * key.
-
-
Doesn't work in Visual Studio for all of the key mapping sets. Commented Oct 28, 2022 at 14:11
for VS code and later versions Ctrl + P to open and then writing Whitespace, you can select the View: Toggle Render Whitespace
visual studio show whitespace
dozens of times over the years when installing VS on a new machine at a new job. Summary: No, just knowing they are whitespace characters doesn't mean you know how to toggle them.