简体   繁体   English

VSCode 颜色高亮区域

[英]VSCode colour highlighted area

When I am in a function or in a segment of a loop this area is colored.当我在函数或循环的一部分中时,这个区域是彩色的。 It's annoying me.这让我很烦。 How to get rid out of it?如何摆脱它? Disabled some extension, doesn't fix that.禁用了一些扩展,并没有解决这个问题。 highlighted area, I want to not get this highligting feature.突出显示区域,我不想获得此突出显示功能。

I have disabled some color and auto tag extensions.我禁用了一些颜色和自动标签扩展。 Doesn't get help.得不到帮助。

The highlighted area you are seeing in Visual Studio Code is called the "current line highlight".您在 Visual Studio Code 中看到的突出显示区域称为“当前行突出显示”。 This feature is designed to make it easier to identify the current line of code you are working on.此功能旨在更轻松地识别您正在处理的当前代码行。

To disable the current line highlight, you can follow these steps:要禁用当前行突出显示,您可以按照以下步骤操作:

  1. Open the Settings editor in Visual Studio Code by going to File > Preferences > Settings or by pressing Ctrl +, (comma).通过转到“文件”>“首选项”>“设置”或按 Ctrl +,(逗号),在 Visual Studio Code 中打开“设置”编辑器。
  2. In the search bar at the top of the Settings editor, type "highlight" and press Enter.在设置编辑器顶部的搜索栏中,键入“highlight”并按 Enter。
  3. In the search results, you should see a setting called "Editor: Render Current Line".在搜索结果中,您应该会看到一个名为“Editor: Render Current Line”的设置。
  4. Click on the toggle to the right of the setting to disable it.单击设置右侧的开关将其禁用。
  5. Close the Settings editor and the current line highlight should no longer be displayed.关闭设置编辑器,当前行突出显示不应再显示。

Alternatively, you can disable the current line highlight by adding the following line to your settings.json file:或者,您可以通过将以下行添加到您的 settings.json 文件来禁用当前行突出显示:

"editor.renderLineHighlight": "none" "editor.renderLineHighlight": "无"

Actually, it happened for an extension named "Indented Block highlight."实际上,它发生在名为“Indented Block highlight”的扩展中。 After disabling the extension, that area highlighting is gone away.禁用扩展后,该区域突出显示消失了。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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