codeblocks 使用指南z

本文档详细介绍了如何更改CodeBlocks的界面风格,帮助用户定制个人化的开发环境。
摘要由CSDN通过智能技术生成

1.界面风格更改

首先贴怎么普通设置出来,或者改配置文件

这是我的风格

类似于DEV-CPP里面的一个主题,看的很舒服

具体设置如下:
Settings-Editor
1.代码当前行高亮
在General settings 找到 Highlight line under caret;打勾
然后找到Synatax highlighting的Active line的Background 选择黑色(因为背景会是深蓝色)
2.背景 及普通变量字体
Synatax highlighting的Default 
Foregroud 为字体颜色 白色OK
Background 颜色代码为RGB为 11 22 29
3.include
Synatax highlighting的Preprocessor
Foregroud 颜色代码为RGB  255 172 0
3.符号
Synatax highlighting的Operator
Foregroud 颜色代码为RGB  255 172 0
4.数字
Synatax highlighting的Number
Foreground 颜色代码 RGB  255  57 132
5关键词int char
Synatax highlighting的Keyword
FOreground 颜色代码RGB 247 240 128
6字符串 
Synatax highlighting的String和Character
Foreground 颜色代码RGB  87 227 57
7.字体
General setting 里的Font的Consolas字体最好
在123456 选择的时候最好都取消粗体 很难看
8.光标
Margins ans caret 里面的caret  最好深蓝色 长度2

配置文件如下


<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocksConfig version="1">
	<!-- application info:
	 svn_revision:	9501
	 build_date:	Dec 10 2013, 22:28:10
	 gcc_version:	4.7.1 
	 Windows Unicode -->
	<app>
		<locale>
			<CATALOGNUM int="61" />
			<DOMAIN1>
				<str>
					<![CDATA[Abbreviations]]>
				</str>
			</DOMAIN1>
			<DOMAIN2>
				<str>
					<![CDATA[AStylePlugin]]>
				</str>
			</DOMAIN2>
			<DOMAIN3>
				<str>
					<![CDATA[Autosave]]>
				</str>
			</DOMAIN3>
			<DOMAIN4>
				<str>
					<![CDATA[AutoVersioning]]>
				</str>
			</DOMAIN4>
			<DOMAIN5>
				<str>
					<![CDATA[BrowseTracker]]>
				</str>
			</DOMAIN5>
			<DOMAIN6>
				<str>
					<![CDATA[BYOGames]]>
				</str>
			</DOMAIN6>
			<DOMAIN7>
				<str>
					<![CDATA[CB_Koders]]>
				</str>
			</DOMAIN7>
			<DOMAIN8>
				<str>
					<![CDATA[Cccc]]>
				</str>
			</DOMAIN8>
			<DOMAIN9>
				<str>
					<![CDATA[ClassWizard]]>
				</str>
			</DOMAIN9>
			<DOMAIN10>
				<str>
					<![CDATA[CodeCompletion]]>
				</str>
			</DOMAIN10>
			<DOMAIN11>
				<str>
					<![CDATA[CodeSnippets]]>
				</str>
			</DOMAIN11>
			<DOMAIN12>
				<str>
					<![CDATA[CodeStat]]>
				</str>
			</DOMAIN12>
			<DOMAIN13>
				<str>
					<![CDATA[Compiler]]>
				</str>
			</DOMAIN13>
			<DOMAIN14>
				<str>
					<![CDATA[copystrings]]>
				</str>
			</DOMAIN14>
			<DOMAIN15>
				<str>
					<![CDATA[CppCheck]]>
				</str>
			</DOMAIN15>
			<DOMAIN16>
				<str>
					<![CDATA[Cscope]]>
				</str>
			</DOMAIN16>
			<DOMAIN17>
				<str>
					<![CDATA[Debugger]]>
				</str>
			</DOMAIN17>
			<DOMAIN18>
				<str>
					<![CDATA[FilesExtensionHandler]]>
				</str>
			</DOMAIN18>
			<DOMAIN19>
				<str>
					<![CDATA[DevPakUpdater]]>
				</str>
			</DOMAIN19>
			<DOMAIN20>
				<str>
					<![CDATA[DoxyBlocks]]>
				</str>
			</DOMAIN20>
			<DOMAIN21>
				<str>
					<![CDATA[cbDragScroll]]>
				</str>
			</DOMAIN21>
			<DOMAIN22>
				<str>
					<![CDATA[EditorConfig]]>
				</str>
			</DOMAIN22>
			<DOMAIN23>
				<str>
					<![CDATA[EditorTweaks]]>
				</str>
			</DOMAIN23>
			<DOMAIN24>
				<str>
					<![CDATA[EnvVars]]>
				</str>
			</DOMAIN24>
			<DOMAIN25>
				<str>
					<![CDATA[Exporter]]>
				</str>
			</DOMAIN25>
			<DOMAIN26>
				<str>
					<![CDATA[FileManager]]>
				</str>
			</DOMAIN26>
			<DOMAIN27>
				<str>
					<![CDATA[FortranProject]]>
				</str>
			</DOMAIN27>
			<DOMAIN28>
				<str>
					<![CDATA[HeaderFixup]]>
				</str>
			</DOMAIN28>
			<DOMAIN29>
				<str>
					<![CDATA[HelpPlugin]]>
				</str>
			</DOMAIN29>
			<DOMAIN30>
				<str>
					<![CDATA[HexEditor]]>
				</str>
			</DOMAIN30>
			<DOMAIN31>
				<str>
					<![CDATA[IncrementalSearch]]>
				</str>
			</DOMAIN31>
			<DOMAIN32>
				<str>
					<![CDATA[cbKeyBinder]]>
				</str>
			</DOMAIN32>
			<DOMAIN33>
				<str>
					<![CDATA[lib_finder]]>
				</str>
			</DOMAIN33>
			<DOMAIN34>
				<str>
					<![CDATA[MouseSap]]>
				</str>
			</DOMAIN34>
			<DOMAIN35>
				<str>
					<![CDATA[NassiShneidermanPlugin]]>
				</str>
			</DOMAIN35>
			<DOMAIN36>
				<str>
					<![CDATA[OccurrencesHighlighting]]>
				</str>
			</DOMAIN36>
			<DOMAIN37>
				<str>
					<![CDATA[OpenFilesList]]>
				</str>
			</DOMAIN37>
			<DOMAIN38>
				<str>
					<![CDATA[Profiler]]>
				</str>
			</DOMAIN38>
			<DOMAIN39>
				<str>
					<![CDATA[ProjectsImporter]]>
				</str>
			</DOMAIN39>
			<DOMAIN40>
				<str>
					<![CDATA[RegExTestbed]]>
				</str>
			</DOMAIN40>
			<DOMAIN41>
				<str>
					<![CDATA[ReopenEditor]]>
				</str>
			</DOMAIN41>
			<DOMAIN42>
				<str>
					<![CDATA[rndgen]]>
				</str>
			</DOMAIN42>
			<DOMAIN43>
				<str>
					<![CDATA[ScriptedWizard]]>
				</str>
			</DOMAIN43>
			<DOMAIN44>
				<str>
					<![CDATA[SmartIndentCpp]]>
				</str>
			</DOMAIN44>
			<DOMAIN45>
				<str>
					<![CDATA[SmartIndentFortran]]>
				</str>
			</DOMAIN45>
			<DOMAIN46>
				<str>
					<![CDATA[SmartIndentHDL]]>
				</str>
			</DOMAIN46>
			<DOMAIN47>
				<str>
					<![CDATA[SmartIndentLua]]>
				</str>
			</DOMAIN47>
			<DOMAIN48>
				<str>
					<![CDATA[SmartIndentPascal]]>
				</str>
			</DOMAIN48>
			<DOMAIN49>
				<str>
					<![CDATA[SmartIndentPython]]>
				</str>
			</DOMAIN49>
			<DOMAIN50>
				<str>
					<![CDATA[SmartIndentXML]]>
				</str>
			</DOMAIN50>
			<DOMAIN51>
				<str>
					<![CDATA[SpellChecker]]>
				</str>
			</DOMAIN51>
			<DOMAIN52>
				<str>
					<![CDATA[SymTab]]>
				</str>
			</DOMAIN52>
			<DOMAIN53>
				<str>
					<![CDATA[ThreadSearch]]>
				</str>
			</DOMAIN53>
			<DOMAIN54>
				<str>
					<![CDATA[ToDoList]]>
				</str>
			</DOMAIN54>
			<DOMAIN55>
				<str>
					<![CDATA[ToolsPlus]]>
				</str>
			</DOMAIN55>
			<DOMAIN56>
				<str>
					<![CDATA[wxSmith]]>
				</str>
			</DOMAIN56>
			<DOMAIN57>
				<str>
					<![CDATA[wxSmithMime]]>
				</str>
			</DOMAIN57>
			<DOMAIN58>
				<str>
					<![CDATA[wxSmithAui]]>
				</str>
			</DOMAIN58>
			<DOMAIN59>
				<str>
					<![CDATA[wxSmithContribItems]]>
				</str>
			</DOMAIN59>
			<DOMAIN60>
				<str>
					<![CDATA[wxsSmithPlot]]>
				</str>
			</DOMAIN60>
			<DOMAIN61>
				<str>
					<![CDATA[WindowsXPLookNFeel]]>
				</str>
			</DOMAIN61>
			<ENABLE bool="0" />
			<LANGUAGE>
				<str>
					<![CDATA[]]>
				</str>
			</LANGUAGE>
		</locale>
		<environment>
			<aui>
				<BORDER_SIZE int="1" />
				<SASH_SIZE int="4" />
				<CAPTION_SIZE int="17" />
				<ACTIVE_CAPTION_COLOUR>
					<colour r="51" g="153" b="255" />
				</ACTIVE_CAPTION_COLOUR>
				<ACTIVE_CAPTION_GRADIENT_COLOUR>
					<colour r="91" g="173" b="255" />
				</ACTIVE_CAPTION_GRADIENT_COLOUR>
				<ACTIVE_CAPTION_TEXT_COLOUR>
					<colour r="0" g="0" b="0" />
				</ACTIVE_CAPTION_TEXT_COLOUR>
				<INACTIVE_CAPTION_COLOUR>
					<colour r="187" g="187" b="187" />
				</INACTIVE_CAPTION_COLOUR>
				<INACTIVE_CAPTION_GRADIENT_COLOUR>
					<colour r="213" g="213" b="213" />
				</INACTIVE_CAPTION_GRADIENT_COLOUR>
				<INACTIVE_CAPTION_TEXT_COLOUR>
					<colour r="0" g="255" b="255" />
				</INACTIVE_CAPTION_TEXT_COLOUR>
			</aui>
			<view>
				<DBL_CLK_MAXIMIZE bool="1" />
				<LAYOUT_TO_TOGGLE>
					<str>
						<![CDATA[Code::Blocks default]]>
					</str>
				</LAYOUT_TO_TOGGLE>
			</view>
			<SHOW_SPLASH bool="1" />
			<SINGLE_INSTANCE bool="1" />
			<USE_IPC bool="1" />
			<RAISE_VIA_IPC bool="1" />
			<CHECK_ASSOCIATIONS bool="1" />
			<CHECK_MODIFIED_FILES bool="1" />
			<IGNORE_INVALID_TARGETS bool="1" />
			<BLANK_WORKSPACE bool="1" />
			<TOOLBAR_SIZE bool="1" />
			<SETTINGS_SIZE int="0" />
			<START_HERE_PAGE bool="1" />
			<TABS_STYLE int="0" />
			<TABS_CLOSESTYLE int="0" />
			<TABS_LIST bool="0" />
			<TABS_STACKED_BASED_SWITCHING bool="0" />
			<TABS_USE_MOUSEWHEEL bool="1" />
			<TABS_MOUSEWHEEL_MODIFIER>
				<str>
					<![CDATA[Ctrl]]>
				</str>
			</TABS_MOUSEWHEEL_MODIFIER>
			<TABS_MOUSEWHEEL_ADVANCE bool="0" />
			<TABS_INVERT_ADVANCE bool="0" />
			<TABS_INVERT_MOVE bool="0" />
		</environment>
		<main_frame>
			<layout>
				<DEFAULT>
					<str>
						<![CDATA[Code::Blocks default]]>
					</str>
				</DEFAULT>
				<LEFT_BLOCK_SELECTION int="2" />
				<BOTTOM_BLOCK_SELECTION int="3" />
				<DISPLAY int="0" />
				<MAXIMIZED bool="1" />
				<LEFT int="0" />
				<TOP int="0" />
				<WIDTH int="1000" />
				<HEIGHT int="768" />
				<view1>
					<NAME>
						<str>
							<![CDATA[Code::Blocks minimal]]>
						</str>
					</NAME>
					<DATA>
						<str>
							<![CDATA[layout2|name=ManagementPane;caption=Management;state=2099198;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=200;besth=212;minw=100;minh=100;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=MessagesPane;caption=Logs & others;state=2099198;dir=3;layer=0;row=0;pos=0;prop=100000;bestw=384;besth=150;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=CallStackPane;caption=Call stack;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=150;besth=150;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=450;floath=150|name=BreakpointsPane;caption=Breakpoints;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=250;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=350;floath=250|name=CPURegistersPane;caption=CPU Registers;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=250;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=350;floath=250|name=DisassemblyPane;caption=Disassembly;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=250;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=350;floath=250|name=ExamineMemoryPane;caption=Memory;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=450;besth=250;minw=350;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=450;floath=250|name=ThreadsPane;caption=Running threads;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=75;minw=250;minh=75;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=450;floath=75|name=WatchesPane;caption=Watches (new);state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=150;besth=250;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=150;floath=250|name=MainPane;caption=;state=768;dir=5;layer=0;row=0;pos=0;prop=100000;bestw=16;besth=16;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=ScriptConsole;caption=Scripting console;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=285;besth=100;minw=100;minh=100;maxw=-1;maxh=-1;floatx=300;floaty=200;floatw=-1;floath=-1|name=CodeSnippetsPane;caption= CodeSnippets;state=2099199;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=300;besth=400;minw=30;minh=40;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=300;floath=400|name=DefMimeHandler_HTMLViewer;caption=HTML viewer;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=350;besth=250;minw=150;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=350;floath=250|name=MANViewer;caption=Man/Html pages viewer;state=2099198;dir=2;layer=0;row=0;pos=0;prop=100000;bestw=320;besth=240;minw=240;minh=160;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=320;floath=240|name=HighlightedOccurrences;caption=Highlighted Occurrences;state=2099198;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=150;besth=100;minw=50;minh=50;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=100;floath=150|name=OpenFilesPane;caption=Open files list;state=2099198;dir=4;layer=1;row=0;pos=0;prop=100000;bestw=150;besth=100;minw=50;minh=50;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=100;floath=150|name=TodoListPanev2.0.0;caption=Todo list;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=352;besth=94;minw=352;minh=94;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=352;floath=94|name=Tools;caption=Tool Output;state=2099199;dir=4;layer=0;row=0;pos=0;prop=100000;bestw=400;besth=300;minw=200;minh=150;maxw=-1;maxh=-1;floatx=200;floaty=150;floatw=400;floath=300|name=MainToolbar;caption=Main Toolbar;state=2108158;dir=1;layer=10;row=0;pos=0;prop=100000;bestw=277;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=CompilerToolbar;caption=Compiler Toolbar;state=2108158;dir=1;layer=10;row=0;pos=277;prop=100000;bestw=251;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=DebuggerToolbar;caption=Debugger Toolbar;state=2108158;dir=1;layer=10;row=0;pos=528;prop=100000;bestw=261;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=CodeCompletionToolbar;caption=Code completion Toolbar;state=2108158;dir=1;layer=10;row=1;pos=0;prop=100000;bestw=946;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=DoxyBlocksToolbar;caption=DoxyBlocks Toolbar;state=2108158;dir=1;layer=10;row=1;pos=946;prop=100000;bestw=185;besth=23;minw=-1;minh=-1;maxw=-1;maxh=-1;floatx=-1;floaty=-1;floatw=-1;floath=-1|name=FortranProjectToolbar;caption=FortranProject 
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值