简体   繁体   中英

How to change text color in vscode?

For a specific theme in VSCode, how to change the text color for numeric data?

For example, I want to change the text color of decimal number '1433'( and all other decimal numeric data). What modifications are to be done in the JSON file to achieve this?

数值数据

You can customize your active color theme with the workbench.colorCustomizations and editor.tokenColorCustomizations user settings.

Do you need to change the color for all the numbers?

Then try This:

  • ctrl+shift+p
  • Search "settings.json"
  • Add this inside the json.

"editor.tokenColorCustomizations": { "numbers": "#d4922f" },

  • Change the color you need.

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.

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