1. 程式人生 > >MDK更改配色方案

MDK更改配色方案

前言

作為程式設計師,需要長期使用編譯器,而白色的背景看久了多少對眼睛有刺激,所以可以看到絕大部分程式設計師用的IDE都是深色背景的。本文講如何更改MDK的配色方案。

開始

1、在安裝目錄下找到global.prop檔案,先備份一份。

MDK更改配色方案

 

2、然後開啟mdk,開啟配置介面

MDK更改配色方案

 

3、在Color&Fonts下,左邊選擇C/C++ Editor files ,右邊就可以根據自己的喜好進行更改

MDK更改配色方案

 

4、小編更改後效果如下圖

MDK更改配色方案

 

5、其實配置的儲存放在global.prop下,只需更改這個檔案後,重啟MDK即可更改。

配置

# 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 and syntax check
cc.autolist=1
cc.highlightsyntax=1
cc.showparameters=1
cc.triggerlist=0
cc.triggernumchars=3
cc.enter.as.fillup=0
cc.usealpha4inactcode=1
cc.alphavalue=50
# 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=#FFFFFF
selection.back=#264F78
caret.fore=#FFFFFF
caret.back=#424242
# Color for vertical edge
edge.colour=#66FAFA
# C/C++ Editor files
template.cpp="#define","#define |";"#if","#if |

#endif";\
 "#include","#include ";"Header","// Header:
// File Name: |
// Author:
// Date:
";\
 "continue","continue;";"do","do
{
	// TODO: enter the block content here
	
	|
} while ();
";\
 "enum","enum |
{
	
};
";"for","for(|;;)
{
}";\
 "fpointer_type","typedef int (* |F)();
";"function","void function(|)
{

}
";\
 "if","if (|)";"ifelse","if (|)
{
}
else
{
}";\
 "struct","struct | 
{

};
";"switch","switch (|)
{
	case:
		break;
	case:
		break;
	default:
		break;
}";\
 "void","void | ();
";"while","while (|)
{
}";\
 "函式說明","
/****************************************************/
//Function: |
//Description: 
//Input:
//Return: 
//Author: 
/****************************************************/";\
 
font.monospace.cpp=Courier New
style.cpp.32=font:Courier New,size:10,fore:#C8C8C8,back:#363636
style.cpp.4=font:Courier New,size:10,fore:#FF7373,back:#363636
style.cpp.10=font:Courier New,size:10,fore:#C8C8C8,back:#363636
style.cpp.1=font:Courier New,size:10,fore:#7878BC,back:#363636
style.cpp.2=font:Courier New,size:10,fore:#7878BC,back:#363636
style.cpp.5=font:Courier New,size:10,fore:#FF80FF,back:#363636
style.cpp.6=font:Courier New,size:10,fore:#D69D85,back:#363636
style.cpp.11=font:Courier New,size:10,fore:#82B7E1,back:#363636
style.cpp.9=font:Courier New,size:10,fore:#FF80FF,back:#363636
style.cpp.7=font:Courier New,size:10,fore:#FF00FF,back:#363636
style.cpp.34=font:Courier New,size:10,fore:#C0C0C0,back:#363636
style.cpp.35=font:Courier New,size:10,fore:#FF3333,back:#363636
style.cpp.16=font:Courier New,size:10,fore:#B00040,back:#363636
style.cpp.12=font:Courier New,size:10,fore:#FF80C0,back:#363636
style.cpp.86=font:Courier New,size:10,fore:#696969,back:#FFFFFF
# Asm Editor files
font.monospace.asm=Courier New
style.asm.32=font:Courier New,size:10,fore:#FFFFFF,back:#1E1E1E
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