Visual Studio 2017缩进指南着色

时间:2017-03-11 13:59:38

标签: visual-studio-2017

在Visual Studio 2015中,我为这样的缩进指南着色。

我似乎无法在Visual Studio 2017中找到此功能。是否有扩展程序可以执行此操作?

字体和颜色中有一个选项可以更改所有指南的颜色。但我想要的是在2015年,它会自动进行颜色编码(蓝色,绿色,蓝绿色,紫色等),具体取决于支架的类型/等级。

enter image description here

6 个答案:

答案 0 :(得分:11)

我认为这正是你想要的。这就是名为“缩进指南”的扩展名。

代表不同级别的缩进指南的'#'背后的数字。

我知道我的答案看起来很糟糕。请原谅我。作为一个新的,我真的尽我所能。

Here is what it looks like Here is how i change the color of the indent guides which belongs to different level Follow the step above

答案 1 :(得分:5)

VS2015没有内置此功能。它是通过扩展添加的。

EG。来自Productivity Power Tools的“结构可视化器”。

然而,2017年内置了(较少)功能,因此Productivity PowerTools 2017不包含此功能。 (它现在也是一组单独的扩展而不是单一工具。)

这在blog post中有解释,请参阅缺少什么?

答案 2 :(得分:3)

还有一个名为Indent Guides的Visual Studio 2015的优秀扩展,它运行得非常好。

默认情况下它与VS2017不兼容,但你可以通过修改vsix文件中的扩展清单文件来解决这个问题:

1) Download IndentGuide v14.vsix for VS2015
2) Use 7-zip (or other archive utility) to open the .vsix file (which is actually a .zip)
3) Edit the extension.vsixmanifest file within the .vsix file
4) Make a copy of the whole VisualStudio Version="14.0" section
5) Change that new copy to VisualStudio Version="15.0"
6) Save the manifest, save the vsix.
7) Double-click the .vsix file to install it.  Ignore the compatibility warning.

答案 3 :(得分:3)

VS2017中的原生。它被称为"结构指南行"

答案 4 :(得分:3)

这真的应该是一个评论,但由于我没有足够的声誉来制作它,所以它是一个“答案”。

添加了uservoice以征求关于添加到VS2017的当前Structure Visualizer缺失功能的反馈。如果您有兴趣恢复这些功能,请投票。

Improve the Structure Visualizer in Visual Studio 2017

答案 5 :(得分:1)

在VS2017企业版的德语版中,您在寻找的设置在选项/环境/字体和颜色中称为“Strukturführungslinien”。我会用“结构线”翻译它。

相关问题