How to modify the font color of a txt file in vscode

1. Add the following code directly in settings.json:

// txt文件字体颜色
"workbench.colorCustomizations": {
    "editor.foreground": "#9acd32",
},

2. What color to change here, what color is the font in the txt file, and the font color of the text in the project is also modified, and the others remain unchanged. The supported formats of the color are as follows, and the colors in English format are not supported, such as red, blue, etc. .

tips:

settings.json file location?

        In the lower right corner of vscode, click Settings > the icon in the upper left corner of the settings page > the first icon is, click to open.

It is also mentioned here, the specific location is here:

settings.json location https://blog.csdn.net/weixin_65793170/article/details/130084641?csdn_share_tail=%7B%22type%22%3A%22blog%22%2C%22rType%22%3A%22article%22%2C %22rId%22%3A%22130084641%22%2C%22source%22%3A%22weixin_65793170%22%7D

Guess you like

Origin blog.csdn.net/weixin_65793170/article/details/130223314
Recommended