如何在Visual Studio代码中禁用尖括号突出显示?

时间:2017-07-25 10:57:33

标签: visual-studio-code

我只是想禁用尖括号上发生的字符突出显示,因为我发现方框很烦人。有没有办法把它关掉?

enter image description here

5 个答案:

答案 0 :(得分:11)

您可以在设置中搜索关键字And sysdate - lma.arrival_dttm >= Case when lma.opn = 9661 Then 7 Else 2 End ,然后将 set display_text to "Please enter your password:" repeat considering case set init_pass to text returned of (display dialog display_text default answer "" with hidden answer) set final_pass to text returned of (display dialog "Please verify your password below." buttons {"OK"} default button 1 default answer "" with hidden answer) if (final_pass = init_pass) then exit repeat else set display_text to "Mismatching passwords, please try again" end if end considering end repeat tell application "Finder" #set theItems to choose folder with prompt "Please select a document to process:" #set theItems to selected set theItem to selection # This is where the problem is. set theItem to (item 1 of theItems) as alias set itemPath to quoted form of POSIX path of theItem set fileName to name of theItem set theFolder to POSIX path of (container of theItem as alias) set zipFile to quoted form of (fileName & ".zip") do shell script "cd '" & theFolder & "'; zip -x .DS_Store -r0 -P '" & final_pass & "' " & zipFile & " ./'" & fileName & "'" end tell 更改为highlight,如下所示:

enter image description here

答案 1 :(得分:6)

您可以使用以下内容: // Highlight matching brackets when one of them is selected. "editor.matchBrackets": false,但是它禁止突出显示所有括号,而不仅是尖括号。

答案 2 :(得分:5)

您始终可以使用以下设置使支架边框颜色透明:

"workbench.colorCustomizations": {

    "editorBracketMatch.border": "#0000",
    "editorBracketMatch.background": "#000"
}

这将使边框变得透明,支架的背景变黑 - 或者只是根据编辑背景使其不那么突兀。但同样,这将适用于所有括号,而不仅仅是尖括号。

答案 3 :(得分:1)

不幸的是,它仍然是不可配置的。也许他们会改善它。

这是我在VSCode存储库中可以看到的票-https://github.com/microsoft/vscode/issues/73521

只要它们没有改善,您有两种方法

插件的解决方案:

  1. 禁用本机括号匹配:"editor.matchBrackets": false,
  2. https://marketplace.visualstudio.com/items?itemName=rafamel.subtle-brackets安装插件
  3. 自定义它以获得更好的可视性,例如:
    "subtleBrackets.style": {
        "borderStyle": "solid",
        "borderColor": "#CC7832",
        "borderRadius": "3px",
    }

enter image description here enter image description here

没有插件的本地解决方案:

  • 您可以仅针对特定语言禁用括号匹配突出显示
"[html]": {
   "editor.matchBrackets": false
}

请注意,这不是一个完美的解决方案,因为在php文件中使用html时,尖括号仍然突出显示

答案 4 :(得分:1)

嗯。有一个解决方案可以隐藏我刚刚发现的烦人的标记。转到左下角的设置按钮,然后在搜索选项中写入-尖括号并进行搜索。然后按下“文本编辑器”,顶部会出现一个名为“Editor:Match Brackets”的选择选项。选择“从不”,您的工作就在这里完成。如果需要,请参阅附图。

enter image description here