Why does the Visual Studio editor show dots in blank spaces?

◇◆丶佛笑我妖孽 提交于 2019-11-26 08:40:45

问题


I have a strange bug in the Visual Studio text editor. All my blank spaces are replaced by a \".\"

public class Person
{
  int age;
}

looks like this

public..class..Person..........................
{..................
..int age;...................
}.....................

I reset the settings to default. Didn\'t work. I also re-installed VS2008. Still didn\'t work. What\'s the error?


回答1:


Visual Studio is configured to show whitespace.

Press Ctrl+R, Ctrl+W.

If you are using C# keyboard mappings: (thanks Simeon)

Press Ctrl+E, S.

If you want to use the menu: (thanks angularsen)

Edit > Advanced > View White Space



回答2:


Looks like you have the view white space option enabled. Go to Edit -> Advanced -> and uncheck "View Whitespace"




回答3:


In Visual Studio 2012
Go to
Edit -> Advanced -> View White Spaces
Or
Press Ctrl+R, Ctrl+W




回答4:


~ FOR VISUAL STUDIO 6 ~

use: ctrl+shift+8 to toggle on/off.

(or manualy go to: Edit> Advance > "View Whitespaces")

goodluck!

Works also for Visual Studio 2008, when Tools/Options/Environment/Keyboard/Mapping Scheme: Visual C++ 6 is selected.




回答5:


Please press below buttons in combination of Ctrl + R,W




回答6:


I had the same problem and resolved by pressing Ctrl + R , Ctrl + W.




回答7:


Press ctrl + E followed by S key to remove the lines in Visual Studio 10




回答8:


go to File -> Preferences -> Settings, this will open two panels side by side, the left one is default setting and the right one is user setting, you can add your setting on right panel, for this you can add "editor.renderWhitespace": "all".




回答9:


In Visual Studio vesrion 1.34.0 View -> Toggle Render Whitespace




回答10:


In visual studio 2015, goto->view->formatting marks, unselect show




回答11:


In Visual Studio 2019, this can also be configured in Tools -> Options -> General -> View whitespace



来源:https://stackoverflow.com/questions/973571/why-does-the-visual-studio-editor-show-dots-in-blank-spaces

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!