仿VScode MDK背景配色方案

效果如果所示

操作方法:备份后修改~/UV4文件夹下的global.prop,用以下的代码代替。

# properties for all file types
indent.automatic=1
virtual.space=0
view.whitespace=0
view.endofline=0
code.page=936
caretline.visible=1
highlight.matchingbraces=1
print.syntax.coloring=1
use.tab.color=1
create.backup.files=0
auto.load.ext.modfiles=1
save.prj.before.dbg=1
save.files.before.dbg=1
function.scanner.project=1
function.scanner.files=1
function.scanner.modules=1

# properties for c/cpp files
syntax.colouring.cpp=1
use.tab.cpp=1
tabsize.cpp=2
line.margin.visible.cpp=1
fold.cpp=1
monospaced.font.cpp=1

# properties for asm files
syntax.colouring.asm=1
use.tab.asm=1
tabsize.asm=2
line.margin.visible.asm=1
monospaced.font.asm=1

# properties for other files
use.tabs=1
tabsize=2
line.margin.visible.txt=1
monospaced.font.txt=1

# setting for code completion and syntax check
cc.autolist=1
cc.highlightsyntax=1
cc.showparameters=1
cc.triggerlist=1
cc.triggernumchars=3
cc.enter.as.fillup=1

# autosave for editor files
autosave=0
autosave.interval=5

# vertical edge at right margin
edge.mode=0
edge.column=80


# Specification for text selection and caret line
selection.fore=#D4D4D4
selection.back=#264F78
caret.fore=#D4D4D4
caret.back=#343A40

# Color for vertical edge
edge.colour=#66FAFA

# C/C++ Editor files
template.cpp="#define","#define |";"#if","#if |\r\n\r\n#endif";\\
    "#include","#include ";"Header","// Header:\r\n// File Name: |\r\n// Author:\r\n// Date:\r\n";\\
    "continue","continue;";"do","do\r\n{\r\n\t// TODO: enter the block content here\r\n\t\r\n\t|\r\n} while ();\r\n";\\
    "enum","enum |\r\n{\r\n\t\r\n};\r\n";"for","for(|;;)\r\n{\r\n}";\\
    "fpointer_type","typedef int (* |F)();\r\n";"function","void function(|)\r\n{\r\n\r\n}\r\n";\\
    "if","if (|)";"ifelse","if (|)\r\n{\r\n}\r\nelse\r\n{\r\n}";\\
    "struct","struct | \r\n{\r\n\r\n};\r\n";"switch","switch (|)\r\n{\r\n\tcase:\r\n\t\tbreak;\r\n\tcase:\r\n\t\tbreak;\r\n\tdefault:\r\n\t\tbreak;\r\n}";\\
    "void","void | ();\r\n";"while","while (|)\r\n{\r\n}";\\
    
font.monospace.cpp=Consolas
style.cpp.32=font:Consolas,size:12,fore:#D4D4D4,back:#1E1E1E
style.cpp.4=font:Consolas,size:12,fore:#B5CEA8,back:#1E1E1E
style.cpp.10=font:Consolas,size:12,fore:#FFD700,back:#1E1E1E
style.cpp.1=font:Consolas,size:12,fore:#6A9955,back:#1E1E1E
style.cpp.2=font:Consolas,size:12,fore:#6A9955,back:#1E1E1E
style.cpp.5=font:Consolas,size:12,fore:#569CD6,back:#1E1E1E
style.cpp.6=font:Consolas,size:12,fore:#CE9178,back:#1E1E1E
style.cpp.11=font:Consolas,size:12,fore:#9CDCFE,back:#1E1E1E
style.cpp.9=font:Consolas,size:12,fore:#C586C0,back:#1E1E1E
style.cpp.7=font:Consolas,size:12,fore:#CE9178,back:#1E1E1E
style.cpp.34=font:Consolas,size:12,fore:#FFD700,back:#666666
style.cpp.35=font:Consolas,size:12,fore:#FF0000,back:#1E1E1E
style.cpp.16=font:Consolas,size:12,fore:#4EC9B0,back:#1E1E1E
style.cpp.12=font:Consolas,size:12,fore:#CE9178,back:#1E1E1E


# Asm Editor files
font.monospace.asm=Consolas
style.asm.32=font:Consolas,size:12,fore:#D4D4D4,back:#1E1E1E
style.asm.1=font:Consolas,size:12,fore:#6A9955,back:#1E1E1E
style.asm.2=font:Consolas,size:12,fore:#B5CEA8,back:#1E1E1E
style.asm.3=font:Consolas,size:12,fore:#CE9178,back:#1E1E1E
style.asm.4=font:Consolas,size:12,fore:#D4D4D4,back:#1E1E1E
style.asm.5=font:Consolas,size:12,fore:#9CDCFE,back:#1E1E1E
style.asm.6=font:Consolas,size:12,fore:#DCDCAA,back:#1E1E1E
style.asm.7=font:Consolas,size:12,fore:#DCDCAA,back:#1E1E1E
style.asm.9=font:Consolas,size:12,fore:#C586C0,back:#1E1E1E
style.asm.10=font:Consolas,size:12,fore:#C586C0,back:#1E1E1E
style.asm.11=font:Consolas,size:12,fore:#6A9955,back:#1E1E1E
style.asm.12=font:Consolas,size:12,fore:#CE9178,back:#1E1E1E
style.asm.8=font:Consolas,size:12,fore:#4EC9B0,back:#1E1E1E


# Editor Text files
font.monospace.txt=Consolas
style.txt.32=font:Consolas,size:12,fore:#D4D4D4,back:#1E1E1E

我之前发的一版配色方案,可以选一个用http://t.csdn.cn/Bk1WC

相关推荐
草梅友仁3 天前
2024 年第 51 周草梅周报:Windsurf,比 Cursor 更好用的 AI 编辑器
aigc·visual studio code·bun
子洋13 天前
Mac 下 vscode 更新报错
前端·javascript·visual studio code
Eric_见嘉17 天前
Cursor 会被打败:使用 Windsurf 一键生成 2048 小游戏
前端·aigc·visual studio code
巫师练法术18 天前
VScode下构建python的虚拟环境
visual studio code
Yang.991 个月前
基于Windows系统用C++做一个点名工具
c++·windows·sql·visual studio code·sqlite3
WXDWIN.1 个月前
C++语言之模版与类型转换
c语言·开发语言·c++·visualstudio·visual studio code
卷卷的小趴菜学编程1 个月前
时间类的实现
c语言·开发语言·数据结构·c++·算法·visual studio code
Eric_见嘉1 个月前
真的能无限试(白)用(嫖)cursor 吗?
前端·visual studio code
heilai41 个月前
workerman的安装与使用
c++·websocket·http·php·phpstorm·visual studio code
移民找老国1 个月前
加拿大移民新风向
java-ee·maven·phpstorm·visual studio code·nio