简体   繁体   English

vscode 中的 dart.closureLabels 问题

[英]dart.closingLabels issue in vscode

Im having a problem in my VSCode using flutter/dart about the dart.closingLabels .我在使用 flutter/dart 的dart.closingLabels关于dart.closingLabels It seems its like a normal text only.它似乎只是一个普通的文本。

在此处输入图片说明

as you can see the closing labels is in plain text, how can I change the font color and style of it?如您所见,结束标签是纯文本,我该如何更改它的字体颜色和样式? I tried to look in dart extension settings but I can't find any settings there.我试图查看 dart 扩展设置,但在那里找不到任何设置。

在此处输入图片说明

this is the only setting for closing labels这是closing labels的唯一设置

or did I install some extensions that affect the dart closing labels ?还是我安装了一些影响dart closing labels扩展?

在此处输入图片说明

How can I solve this one?我该如何解决这个问题?

Thanks in advance!提前致谢!

Just set the color in the workspace workbench.colorCustomizations settings for the token dart.closingLabels只需在工作区 workbench.colorCustomizations 设置中为令牌dart.closureLabels设置颜色

图片

我已经解决了这个问题,只是尝试在VS Code中更改你的主题,你就可以了。

In the VSCode open the Command Palette by pressing Ctrl + Shift + P, and type/select Preferences: Open Settings (JSON).在 VSCode 中,按 Ctrl + Shift + P 打开命令面板,然后键入/选择 Preferences: Open Settings (JSON)。 This will open the editor Settings .json file.这将打开编辑器设置 .json 文件。 Set/add new rules for the editor token color customization.为编辑器令牌颜色自定义设置/添加新规则。

   "workbench.colorCustomizations": {
        "[Default Dark+]": {
          "dart.closingLabels": "#33ff33"
        }
      },
 

Note: Just name your theme instead of "Default Dark +"注意:只需命名您的主题而不是“默认暗+”

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

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