简体   繁体   English

vscode如何改变文字颜色?

[英]How to change text color in vscode?

For a specific theme in VSCode, how to change the text color for numeric data?对于 VSCode 中的特定主题,如何更改数字数据的文本颜色?

For example, I want to change the text color of decimal number '1433'( and all other decimal numeric data).例如,我想更改十进制数字“1433”(以及所有其他十进制数字数据)的文本颜色。 What modifications are to be done in the JSON file to achieve this?在 JSON 文件中需要做哪些修改来实现这一点?

数值数据

You can customize your active color theme with the workbench.colorCustomizations and editor.tokenColorCustomizations user settings.您可以使用workbench.colorCustomizationseditor.tokenColorCustomizations用户设置自定义您的活动颜色主题。

Do you need to change the color for all the numbers?您需要更改所有数字的颜色吗?

Then try This:然后试试这个:

  • ctrl+shift+p Ctrl+Shift+P
  • Search "settings.json"搜索“settings.json”
  • Add this inside the json.将此添加到 json 中。

"editor.tokenColorCustomizations": { "numbers": "#d4922f" }, “editor.tokenColorCustomizations”:{“数字”:“#d4922f”},

  • Change the color you need.更改您需要的颜色。

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

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