2.1 keil软件的一些常用设置

1、自定义关键字

Edit -> Configuration -> User Keywords(或者直接点击“配置”图标):
在这里插入图片描述
在这里插入图片描述
在这里插入图片描述

2、自定义快捷键

Edit -> Configuration -> Shotcut Keys::
比如我们自定义:
ctrl + = 回到下一级
ctrl + - 回到上一级
ctrl + D 找定义

在这里插入图片描述
在这里插入图片描述

![在这里插入图片描述](https://img-blog.csdnimg.cn/20210302091340341.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L29EdWFuWWFuR3VIb25n,size_16,color_FFFFFF,t_70在这里插入图片描述

添加注释: ctrl+/
在这里插入图片描述

等等。。

3、修改背景色为绿豆色

设置背景色为绿豆色
Edit -> Configuration ->Clor&Font->C/C++editor files:
在这里插入图片描述

中间各个选项的背景颜色都改为刚才自己设置的自定义颜色 除了(Matching Braces 和 Incomplete String 这两个选项不用改其他的都需要改)

.gitignore

# Project Files
!*.OPT
*.UVGUI.*
*.UVGUIX.*
!*.UVMPW
!*.UVPROJ
!*.UVPROJX
!*.UVOPT
!*.UVOPTX
!*.UV2

# Source Files
!*.A51
!*.A66
!*.C
!*.CPP
!*.H
!*.INC
!*.S
!*.SRC

# Listing Files
*.COD
*.HTM
*.I
*.LST
*.MAP
*.M51
*.M66
*.SCR

# Object and HEX Files
# *.
*.AXF
*.B[00-31]
*.D
*.CRF
*.ELF
*.HEX
*.H86
*.LIB
*.OBJ
*.O
*.SBR
*.BIN

# Build Files
!*.BAT
*._IA
*.__I
*._II
*.SCR

# Debugger Files
*.INI

# Other Files
*.BUILD_LOG.HTM
*.CDB
*.DEP
*.IC
*.LIN
*.LNP
*.ORC
*.PACK
*.PDSC
*.PLG
PROJECT_GUI.XSD
PROJECT_MPW.XSD
PROJECT_OPT.XSD
PROJECT_PROJ.XSD
*.SCT
*.UVL
*.UVLA
*.UVTSK
*.SFD
*.SFR
*.SVD.XML
*.SVD
*.XML
*.scvd

*.dbgconf

*.iex

*.rar
*.o
*.d
*.crf
*.htm
*.dep
*.map
*.bak
*.lnp
*.lst
*.ini
*.iex
*.sct
*.scvd
*.uvguix
*.dbg*
*.uvguix.*
.mxproject
Templates/
Examples/
!*.uvprojx
!*.h
!*.c
!*.ioc
!*.axf
!*.bin
!*.hex
/Objects/6A10.axf
/JLinkLog.txt
/Objects/*.axf
/DebugConfig
/Listings
/Objects
/RTE.zip

.gitignore

# Project Files
!*.OPT
*.UVGUI.*
*.UVGUIX.*
!*.UVMPW
!*.UVPROJ
!*.UVPROJX
!*.UVOPT
!*.UVOPTX
!*.UV2

# Source Files
!*.A51
!*.A66
!*.C
!*.CPP
!*.H
!*.INC
!*.S
!*.SRC

# Listing Files
*.COD
*.HTM
*.I
*.LST
*.MAP
*.M51
*.M66
*.SCR

# Object and HEX Files
# *.
*.AXF
*.B[00-31]
*.D
*.CRF
*.ELF
*.HEX
*.H86
*.LIB
*.OBJ
*.O
*.SBR
*.BIN

# Build Files
!*.BAT
*._IA
*.__I
*._II
*.SCR

# Debugger Files
*.INI

# Other Files
*.BUILD_LOG.HTM
*.CDB
*.DEP
*.IC
*.LIN
*.LNP
*.ORC
*.PACK
*.PDSC
*.PLG
PROJECT_GUI.XSD
PROJECT_MPW.XSD
PROJECT_OPT.XSD
PROJECT_PROJ.XSD
*.SCT
*.UVL
*.UVLA
*.UVTSK
*.SFD
*.SFR
*.SVD.XML
*.SVD
*.XML
*.scvd

*.dbgconf

*.iex

*.rar
*.o
*.d
*.crf
*.htm
*.dep
*.map
*.bak
*.lnp
*.lst
*.ini
*.iex
*.sct
*.scvd
*.uvguix
*.dbg*
*.uvguix.*
.mxproject
Templates/
Examples/
!*.uvprojx
!*.h
!*.c
!*.ioc
!*.axf
!*.bin
!*.hex
/Objects/6A10.axf
/JLinkLog.txt
/Objects/*.axf
/DebugConfig
/Listings
/Objects
/RTE.zip

4、global.pro

# 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=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=#000000
selection.back=#86C7F7
caret.fore=#000000
caret.back=#DEFEE6

# 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=Microsoft YaHei Mono
font.acpmonofontname.cpp=Microsoft YaHei Mono
font.acppropfontname.cpp=Microsoft YaHei Mono
style.cpp.32=font:Microsoft YaHei Mono,size:12,fore:#000000,back:#CCE8CF
style.cpp.4=font:Microsoft YaHei Mono,size:12,fore:#007F7F,back:#CCE8CF
style.cpp.10=font:Microsoft YaHei Mono,size:12,fore:#000000,back:#CCE8CF
style.cpp.1=font:Microsoft YaHei Mono,size:12,fore:#007F00,back:#CCE8CF
style.cpp.2=font:Microsoft YaHei Mono,size:12,fore:#007F00,back:#CCE8CF
style.cpp.5=font:Microsoft YaHei Mono,size:12,fore:#0000FF,back:#CCE8CF
style.cpp.6=font:Microsoft YaHei Mono,size:12,fore:#7F007F,back:#CCE8CF
style.cpp.11=font:Microsoft YaHei Mono,size:12,fore:#000000,back:#CCE8CF
style.cpp.9=font:Microsoft YaHei Mono,size:12,fore:#7F7F00,back:#CCE8CF
style.cpp.7=font:Microsoft YaHei Mono,size:12,fore:#7F007F,back:#CCE8CF
style.cpp.34=font:Microsoft YaHei Mono,size:12,fore:#500000,back:#20FFFF
style.cpp.35=font:Microsoft YaHei Mono,size:12,fore:#FF0000,back:#CCE8CF
style.cpp.16=font:Microsoft YaHei Mono,size:12,fore:#B00040,back:#CCE8CF
style.cpp.12=font:Microsoft YaHei Mono,size:12,fore:#000000,back:#E0C0E0
style.cpp.86=font:Microsoft YaHei Mono,size:12,fore:#696969,back:#FFFFFF


# 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



评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值