简体   繁体   中英

Remove vertical dotted indentation lines in Visual Studio 2017

I've just installed Visual Studio 2017 and got strange vertical indentation marks in code editor.

在此处输入图像描述

How can I remove them?

PS I disabled all extensions but it doesn't help.

Tools → Options → Text Editor下有一个选项,称为Show structure guide lines ,应该删除它。

In the last version of Visual Studio Code, downloaded in July/2017 (please note that this is not Visual Studio, but as @tambre pointed out, this may help in VS too), the name of this setting changed:

Go to the menu Code->Preference->Settings and search for "renderIndentGuides". The complete setting should appear as:

  "editor.renderIndentGuides": true,

Change it to false and that's it.

只需按ctrl + ES它将被删除。

The same thing in VS2019 is called Show guides for declaration level constructs in the section of ToolsOptionsBlock Structure Guides ; you might want to uncheck Show guides for code level constructs as well.

在此处输入图像描述

A slight update for those using Visual Studio Code, version 1.48.1 (2020-08-19) on Windows 10.

  1. Go to the Settings: Ctrl + , OR File => Preferences => Settings
  2. Search for renderindent
  3. Toggle the settings checkbox for Editor: Render Indent Guides

It's been mentioned in a comment, so I'm just bringing this up as an alternative answer: you can change the color of the vertical dotted lines. They are called " Structure Guide Lines " in the Visual Studio Tools -> Options -> Fonts & Colors dialog. I set mine to { 55, 55, 55} so they are barely visible on the dark-mode background.

Another related setting is " Visible White Space " color, which I set to { 13, 52, 60} after activating the Edit -> Advanced -> View White Space (Ctrl+R, Ctrl+W) option.

转到设置->文本编辑器->编辑器>指南:缩进->取消选中

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM