keil5背景色设置

本文档详细介绍了如何修改Keil_v5的UV4编辑器配置,包括代码格式设置、高亮显示、自动完成、备份选项等,以提升C/C++和汇编代码的编写体验。此外,还提供了文本文件的默认样式,并给出了预定义的代码模板,以增强代码规范性和效率。
摘要由CSDN通过智能技术生成

直接替换 Keil_v5\UV4下的global.prop中的内容即可

# properties for all file types
indent.automatic=1
virtual.space=0
view.whitespace=0
view.endofline=0
code.page=65001
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 and syntax check
cc.autolist=1
cc.highlightsyntax=1
cc.showparameters=1
cc.triggerlist=0
cc.triggernumchars=3

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


# Specification for text selection and caret line
selection.fore=#FFFFFF
selection.back=#626C9D
caret.fore=#FFFFFF
caret.back=#505050

# 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:16,fore:#C0C0C0,back:#1D1D1D
style.cpp.4=font:Consolas,size:16,fore:#B1F589,back:#1D1D1D
style.cpp.10=font:Consolas,size:16,fore:#FFFFFF,back:#1D1D1D
style.cpp.1=font:Consolas,size:16,fore:#81BE81,back:#1D1D1D
style.cpp.2=font:Consolas,size:16,fore:#437E01,back:#1D1D1D
style.cpp.5=font:Consolas,size:16,fore:#EC6FDC,back:#1D1D1D
style.cpp.6=font:Consolas,size:16,fore:#FFAC59,back:#1D1D1D
style.cpp.11=font:Consolas,size:16,fore:#59AFFD,back:#1D1D1D
style.cpp.9=font:Consolas,size:16,fore:#EC6FDC,back:#1D1D1D
style.cpp.7=font:Consolas,size:16,fore:#FFAC59,back:#1D1D1D
style.cpp.34=font:Consolas,size:16,fore:#500000,back:#20FFFF
style.cpp.35=font:Consolas,size:16,fore:#FF0000,back:#FFFFFF
style.cpp.16=font:Consolas,size:16,fore:#B00040,back:#FFFFFF
style.cpp.12=font:Consolas,size:16,fore:#000000,back:#E0C0E0


# Asm Editor files
font.monospace.asm=Courier New
style.asm.32=font:Courier New,size:16,fore:#C0C0C0,back:#1D1D1D
style.asm.1=font:Courier New,size:16,fore:#95BB84,back:#1D1D1D
style.asm.2=font:Courier New,size:16,fore:#FF0000,back:#1D1D1D
style.asm.3=font:Courier New,size:16,fore:#7F007F,back:#1D1D1D
style.asm.4=font:Courier New,size:16,fore:#FFFFFF,back:#1D1D1D
style.asm.5=font:Courier New,size:16,fore:#C0C0C0,back:#1D1D1D
style.asm.6=font:Courier New,size:16,fore:#4B9EE9,back:#1D1D1D
style.asm.7=font:Courier New,size:16,fore:#4B9EE9,back:#1D1D1D
style.asm.9=font:Courier New,size:16,fore:#4B9EE9,back:#1D1D1D
style.asm.10=font:Courier New,size:16,fore:#4B9EE9,back:#1D1D1D
style.asm.11=font:Courier New,size:16,fore:#007F00,back:#1D1D1D
style.asm.12=font:Courier New,size:16,fore:#F000F0,back:#1D1D1D
style.asm.8=font:Courier New,size:16,fore:#46AA03,back:#1D1D1D


# Editor Text files
font.monospace.txt=Courier New
style.txt.32=font:Verdana,size:16,fore:#C0C0C0,back:#1D1D1D



评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值