【Keil5】keil5修改主题背景颜色--仿VS Code 主题

发布时间:2024年01月24日

keil单调的白底主题难免会让人产生视觉疲劳,该工具里有仿VS的黑色主题.当然,如果你觉得这些都不合你心意也可自己制作配色方案。

1、备份 C:\Keil_v5\UV4下的 global.prop文件。

2、下或者复制 我配置的global.prop文件到你的Keil安装路径,比如 C:\Keil_v5\UV4。

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

# properties for c/cpp files
syntax.colouring.cpp=1
use.tab.cpp=0
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=0
tabsize.asm=4
line.margin.visible.asm=1
monospaced.font.asm=1

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

# setting for code completion, syntax check and source browser information
cc.autolist=1
cc.highlightsyntax=1
cc.showparameters=1
cc.triggerlist=1
cc.triggernumchars=3
cc.enter.as.fillup=0
cc.usealpha4inactcode=1
cc.alphavalue=50
cc.autoupdbi=1
cc.updbiinterval=3

# 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=#FAFA00
selection.back=#0082C8
caret.fore=#F6F6F4
caret.back=#393D4F

# Color for vertical edge
edge.colour=#012E2E

# 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=Courier New
font.acpmonofontname.cpp=Courier New
font.acppropfontname.cpp=Courier New
style.cpp.32=font:Courier New,size:12,fore:#F6F6F4,back:#282A36
style.cpp.4=font:Courier New,size:12,fore:#CE7181,back:#282A36
style.cpp.10=font:Courier New,size:12,fore:#F2D612,back:#282A36
style.cpp.1=font:Courier New,size:12,fore:#37A6C6,back:#282A36
style.cpp.2=font:Courier New,size:12,fore:#37A6C6,back:#282A36
style.cpp.5=font:Courier New,size:12,fore:#31D314,back:#282A36
style.cpp.6=font:Courier New,size:12,fore:#EAE41C,back:#282A36
style.cpp.11=font:Courier New,size:12,fore:#F0F0C8,back:#282A36
style.cpp.9=font:Courier New,size:12,fore:#F92672,back:#282A36
style.cpp.7=font:Courier New,size:12,fore:#F5FC0C,back:#282A36
style.cpp.34=font:Courier New,size:12,fore:#A8FF51,back:#F32C8A
style.cpp.35=font:Courier New,size:12,fore:#F6F6F4,back:#282A36
style.cpp.16=font:Courier New,size:12,fore:#66D9EF,back:#282A36
style.cpp.12=font:Courier New,size:12,fore:#F40416,back:#282A36
style.cpp.86=font:Courier New,size:12,fore:#696969,back:#333333


# Asm Editor files
font.monospace.asm=Courier New
style.asm.32=font:Courier New,size:10,fore:#000000,back:#FFFFFF
style.asm.1=font:Courier New,size:10,fore:#616161,back:#FFFFFF
style.asm.2=font:Courier New,size:10,fore:#FF0000,back:#FFFFFF
style.asm.3=font:Courier New,size:10,fore:#7F007F,back:#FFFFFF
style.asm.4=font:Courier New,size:10,fore:#000000,back:#FFFFFF
style.asm.5=font:Courier New,size:10,fore:#000000,back:#FFFFFF
style.asm.6=font:Courier New,size:10,fore:#0000FF,back:#FFFFFF
style.asm.7=font:Courier New,size:10,fore:#0000FF,back:#FFFFFF
style.asm.9=font:Courier New,size:10,fore:#0000FF,back:#FFFFFF
style.asm.10=font:Courier New,size:10,fore:#0000FF,back:#FFFFFF
style.asm.11=font:Courier New,size:10,fore:#007F00,back:#FFFFFF
style.asm.12=font:Courier New,size:10,fore:#7F007F,back:#FFFFFF
style.asm.8=font:Courier New,size:10,fore:#46AA03,back:#FFFFFF


# Editor Text files
font.monospace.txt=Consolas
style.txt.32=font:Verdana,size:10,fore:#000000,back:#FFFFFF


3、关闭Keil,然后重启启动即可。

文章来源:https://blog.csdn.net/weixin_39939185/article/details/135828073
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。