如何编辑 Visual Studio Code 的默认深色主题? [英] How to edit default dark theme for Visual Studio Code?

查看:71
本文介绍了如何编辑 Visual Studio Code 的默认深色主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用的是 64 位 Windows 7.

有没有办法在 Visual Studio Code 中编辑默认的深色主题?在 %USERPROFILE%\.vscode 文件夹中只有来自扩展的主题,而在安装路径中(我使用默认值,C:\Program Files (x86)\Microsoft VS Code) 在 \resources\app\extensions 中有一些标准主题的文件,比如 Kimbie Dark、Solarized Dark/Light 或 Monokai 的变体,但没有默认的深色主题.

但如果毕竟有编辑的可能,那么C++语言中对象成员颜色、指针成员颜色、类名和结构名是由哪些代码块负责的?

解决方案

您要找的文件在,

<块引用>

Microsoft VS Code\resources\app\extensions\theme-defaults\themes

在 Windows 上搜索文件名 dark_vs.json 以在任何其他系统上找到它.

<小时>

更新:

使用新版本的 VSCode,您无需寻找设置文件来自定义主题.现在您可以使用 workbench.colorCustomizationseditor.tokenColorCustomizations 用户设置自定义您的颜色主题.可以在此处找到有关此事的文档.>

I'm using Windows 7 64-bit.

Is there a way to edit default dark theme in the Visual Studio Code? In %USERPROFILE%\.vscode folder there are only themes from the extensions, while in installation path (I used default, C:\Program Files (x86)\Microsoft VS Code) there are files of some standard themes in \resources\app\extensions, like Kimbie Dark, Solarized Dark/Light or variants of Monokai, but there is no default dark theme.

But if after all there is a possibility to edit it, then which blocks of code are responsible for colour of member of object, member of pointer and name of class and structure in the C++ language?

解决方案

The file you are looking for is at,

Microsoft VS Code\resources\app\extensions\theme-defaults\themes

on Windows and search for filename dark_vs.json to locate it on any other system.


Update:

With new versions of VSCode you don't need to hunt for the settings file to customize the theme. Now you can customize your color theme with the workbench.colorCustomizations and editor.tokenColorCustomizations user settings. Documentation on the matter can be found here.

这篇关于如何编辑 Visual Studio Code 的默认深色主题?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆