keil更改黑色背景颜色「建议收藏」

2022-09-10 10:37:39 浏览数 (1)

大家好,又见面了,我是你们的朋友全栈君。

1、先将keil安装目录下UV4中global文件复制出来留作备用,然后用记事本打开安装目录下的global文件

2、将下面的内容全部替换global里的内容,然后保存。

# 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=0 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 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=#000000 selection.back=#86C7F7 caret.fore=#B6F2F8 caret.back=#4F4F4F

# Color for vertical edge edge.colour=#50FC91

# C/C Editor files template.cpp=”#define”,”#define |”;”#if”,”#if |rnrn#endif”;\ “#include”,”#include “;”Header”,”// Header:rn// File Name: |rn// Author:rn// Date:rn”;\ “continue”,”continue;”;”do”,”dorn{rnt// TODO: enter the block content hererntrnt|rn} while ();rn”;\ “enum”,”enum |rn{rntrn};rn”;”for”,”for(|;;)rn{rn}”;\ “fpointer_type”,”typedef int (* |F)();rn”;”function”,”void function(|)rn{rnrn}rn”;\ “if”,”if (|)”;”ifelse”,”if (|)rn{rn}rnelsern{rn}”;\ “struct”,”struct | rn{rnrn};rn”;”switch”,”switch (|)rn{rntcase:rnttbreak;rntcase:rnttbreak;rntdefault:rnttbreak;rn}”;\ “void”,”void | ();rn”;”while”,”while (|)rn{rn}”;\ font.monospace.cpp=Consolas style.cpp.32=font:Consolas,size:14,fore:#FF972F,back:#152B2B style.cpp.4=font:Consolas,size:14,fore:#007F7F,back:#152B2B style.cpp.10=font:Consolas,size:14,fore:#FF8040,back:#152B2B style.cpp.1=font:Consolas,size:14,fore:#1EA235,back:#152B2B style.cpp.2=font:Consolas,size:14,fore:#E9E8E0,back:#152B2B style.cpp.5=font:Consolas,size:14,fore:#BF0000,back:#152B2B,bold,italics style.cpp.6=font:Consolas,size:14,fore:#FF8040,back:#152B2B style.cpp.11=font:Consolas,size:14,fore:#FF8040,back:#152B2B style.cpp.9=font:Consolas,size:14,fore:#FF0000,back:#152B2B style.cpp.7=font:Consolas,size:14,fore:#F876F1,back:#152B2B style.cpp.34=font:Consolas,size:14,fore:#AC76EF,back:#152B2B style.cpp.35=font:Consolas,size:14,fore:#FF0000,back:#152B2B style.cpp.16=font:Consolas,size:14,fore:#FAF14B,back:#152B2B style.cpp.12=font:Consolas,size:14,fore:#00FFFF,back:#152B2B

# 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=Courier New style.txt.32=font:Verdana,size:10,fore:#000000,back:#FFFFFF

3、重新打开keil,此时keil的背景界面已经调整为黑色

4、如果想调整内容的颜色,请在设置里的 Corlors &Fonts 更改

发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/151625.html原文链接:https://javaforall.cn

0 人点赞