visual-studio 为什么 Visual Studio 编辑器在空格中显示点?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/973571/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Why does the Visual Studio editor show dots in blank spaces?
提问by SNA
I have a strange bug in the Visual Studio text editor. All my blank spaces are replaced by a "."
我在 Visual Studio 文本编辑器中有一个奇怪的错误。我所有的空格都被替换为“。”
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?
我将设置重置为默认值。没用。我也重新安装了VS2008。还是没用。有什么错误?
回答by
Visual Studio is configured to show whitespace.
Visual Studio 配置为显示空格。
Press Ctrl+R, Ctrl+W.
按Ctrl+ R、Ctrl+ W。
If you are using C# keyboard mappings: (thanks Simeon)
如果您使用的是 C# 键盘映射:(感谢 Simeon)
Press Ctrl+E, S.
按Ctrl+ E, S。
If you want to use the menu: (thanks angularsen)
如果您想使用菜单:(感谢 angularsen)
Edit > Advanced > View White Space
回答by JaredPar
Looks like you have the view white space option enabled. Go to Edit -> Advanced -> and uncheck "View Whitespace"
看起来您启用了查看空白选项。转到编辑 -> 高级 -> 并取消选中“查看空白”
回答by Satish Singh
In Visual Studio 2012
Go to
Edit -> Advanced -> View White Spaces
Or
Press Ctrl+R, Ctrl+W
在 Visual Studio 2012 中
转到
或
按+ , +Edit -> Advanced -> View White Spaces
CtrlRCtrlW
回答by Satish Singh
~ FOR VISUAL STUDIO 6 ~
~ 对于 VISUAL STUDIO 6 ~
use: ctrl+shift+8to toggle on/off.
使用方法:ctrl+ shift+8来开启/关闭。
(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.
还适用于Visual Studio 2008,当工具/选项/环境/键盘/映射方案时:选择Visual C ++ 6。
回答by Bins
Please press below buttons in combination of Ctrl+ R,W
请按以下按钮组合 Ctrl+ R,W
回答by amol
I had the same problem and resolved by pressing Ctrl+ R, Ctrl+ W.
我遇到了同样的问题并通过按Ctrl+ R、Ctrl+解决了W。
回答by Jainendra
Press ctrl+ Efollowed by Skey to remove the lines in Visual Studio 10
按ctrl+E然后按S键删除 Visual Studio 10 中的行
回答by Parid0kht
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".
转到File -> Preferences -> Settings,这将并排打开两个面板,左侧是默认设置,右侧是用户设置,您可以在右侧面板上添加您的设置,为此您可以添加"editor.renderWhitespace": "all".
回答by veeresh yh
In Visual Studio vesrion 1.34.0View -> Toggle Render Whitespace
在 Visual Studio 版本中 1.34.0View -> Toggle Render Whitespace
回答by Mykhailo Seniutovych
In Visual Studio 2019, this can also be configured in Tools -> Options -> General -> View whitespace
在 Visual Studio 2019 中,这也可以在 Tools -> Options -> General -> View whitespace

