123

How can I can disable the "dots" for spaces in Microsoft Visual Studio?

6 Answers 6

241

Untick Edit -> Advanced -> View White Space.

.

4
  • I wasn't even aware of this option. Either it isn't default, or I turned it off first thing without thinking too much about it. Apr 30, 2010 at 11:43
  • 29
    @Mark Ransom: It's off by default. You can put it on by doing Ctrl-R Ctrl-W, which is I guess what the OP has done unintentionally. You can turn it off that way too.
    – Vicky
    Apr 30, 2010 at 11:46
  • In the new versions of VS Code, you'll find the option in View > Render Whitespace Nov 28, 2021 at 21:42
  • In my version of VS 2019 I can only get rid of the Tab arrows using the recipes suggested, but the 'dots' remain unmoved. Any other ideas? Jan 25, 2022 at 7:00
71

You've enabled "Show spaces". Turn them off with Ctrl+R Ctrl+W, or Edit > Advanced > View Spaces

0
50

For Visual Studio 2010 or later:

Ctrl+E,S

21

Keyboard shortcut : Ctrl R + Ctrl W

3
  • Would it be possible for you to expand upon your answer? Thanks!
    – user1131435
    May 10, 2014 at 5:36
  • 7
    Great answer, but the same answer was made 4 years ago.
    – Karsten
    Feb 27, 2015 at 8:04
  • still working VS 2019
    – Ugur
    Jul 19, 2023 at 12:43
8

in VS Version: 1.39.2 - 2019 in the menu view -> Render Whitespace

2

in vs2022,it was tools->Text Editor->General->Display->View whitespace

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.