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 + E , S它将被删除。
A slight update for those using Visual Studio Code, version 1.48.1 (2020-08-19) on Windows 10.
Ctrl
+ ,
OR File
=> Preferences
=> Settings
renderindent
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.