visual-studio - 为什么 Visual Studio 编辑器会在空白处显示点?

标签 visual-studio formatting whitespace code-editor

我在 Visual Studio 文本编辑器中有一个奇怪的错误。 我所有的空格都被替换为“。”

public class Person
{
  int age;
}

看起来像这样

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

我将设置重置为默认值。没用。 我还重新安装了VS2008。仍然没有工作。 什么错误?

最佳答案

Visual Studio 配置为显示空白。

Ctrl+RCtrl+W

如果您使用 C# 键盘映射:(感谢 Simeon)

Ctrl+ES

如果要使用菜单:(感谢 angularsen)

Edit > Advanced > View White Space

关于visual-studio - 为什么 Visual Studio 编辑器会在空白处显示点?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/973571/

相关文章:

c# - 使用 toString 进行格式化,以便我得到某种图表

Mercurial 差异 : ignore trailing whitespace?

html - 为什么 HTML 要求多个空格在浏览器中显示为单个空格?

c++ - visual studio 和 gcc 的 const 引用语法区别

c++ - 将一个类声明为静态的?

c# - GitHub 提交错误 : Permission denied fatal: Unable to process path ~/App_Data/aspnet-MyProject. mdf

scala - 将 float 转换为 Big Endian

c - 如何允许使用 scanf 输入空格?

string - Xcode5 和 iOS7 : trailing whitespaces in strings in Localizable. 字符串不再起作用

c++ - 在另一个线程中绘制 OpenGL