如何更改 Visual Studio 空白设置?
我在 Visual Studio 代码编辑器中显示了空白字符,我想将其删除。
I have whitespace characters showing in the Visual Studio code editor, and I'd like to remove them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
Ajryan 是正确的,但根据您的个人资料,此菜单项可能会被遮挡。 不过,键盘快捷键应该仍然有效。 Ctrl+R,Ctrl+W
Ajryan is correct but depending on your profile this menu item may be obscured. The keyboard shortcut should still work though. Ctrl+R,Ctrl+W
您需要关闭显示空白字符。 菜单:编辑> 高级> 查看空白。
You need to turn off showing whitespace characters. Menu: Edit > Advanced > View White Space.
如果是VS2008则可以使用Ctrl+E、S组合进行切换。
If it is VS2008 then you can use Ctrl+E, S combination to toggle.
对于
Visual Studio 2019
:Edit > 高级> 查看空白
工具 > 选项> 环境> 字体和颜色> 可见空白
(靠近列表顶部,可能是因为它是常用的设置)For
Visual Studio 2019
:Edit > Advanced > View White Space
Tools > Options > Environment > Fonts and Colors > Visible White Space
(near top of list, probably because it is a commonly used setting)