如何编辑 Visual Studio Code 的默认深色主题?

编程入门 行业动态 更新时间:2024-10-28 15:27:36
本文介绍了如何编辑 Visual Studio Code 的默认深色主题?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我使用的是 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屋!

更多推荐

[db:关键词]

本文发布于:2023-04-30 16:56:23,感谢您对本站的认可!
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:深色   编辑   主题   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!