Professional Documents
Culture Documents
pdf
JGood(http://blog.csdn.net/Jgood )
C++ VisualStudioVS
VisualStudio VC
VS windows os VS
Express Code::Blocks
VisualStudio C/C++ IDE
Code::Blocks
Code::Blocks
Code::Blocks Code::Blocks
Code::Blocks
Code::Block nightly
buildssvn6088
http://forums.codeblocks.org/index.php/topic,11875.0.html
GCC3.4.5
Anders F. Bjorklund (afb), Biplab Kumar Modak (biplab), Bartomiej wiecki (byo), PaulA.
Jimenez (ceniza), Koa Chong Gee (cyberkoa), Daniel Orb (daniel2000), Lieven de
Cock(killerbot), Yiannis Mandravellos (mandrav), Mispunt (mispunt), Martin Halle
(morten-macy), Jens Lody (jens), Jerome Antoine (dje), Damien Moore (dmoore), Pecan
Heber(pecan), Ricardo Garcia (rickg22), Thomas Denk (thomasdenk), tiwag (tiwag)
Permission is granted to copy, distribute and/or modify this document under the terms
of the GNU Free Documentation License, Version 1.2 or any later version published by
the Free Software Foundation.
1 CodeBlocks
CodeBlocks
main.cpp
CodeSnippets(links to files)
URL View->CodeSnippets
insert overwrite
modified
list
CodeBlocks
CodeBlocks
Sources*.c*.cpp
ASM Sources*.s*.S*.ss*.asm
Headers*.h *.hpp
Resources*.res*.xrc
[Project tree >Edit file types & categories]
*.ld Linkerscript
Linkerscript*.ld
1.3
CodeBlocks
Documents
andSettingsn/<user>/Application Data/codeblocks/UserTemplates
CodeBlocks
CodeBlocks [New->Project->User templates]
Code::blocks
PrebuiltPostbuilt
1.8 Workspace
CodeBlocks [File->Save workspace]
<name>.workspace
(<name>.workspace)
A (library) A
B A B
ACodeBlocks
[Project->Properties]
[Projects dependencies]
1.9
CodeBlocks
C/C++
default code[Settings>Editor>Default Code]
/*************************************************************************
* Project:
* Function:
*************************************************************************
* $Author: mario $
* $Name: $
*************************************************************************
*
* Copyright 2007 by company name
*
************************************************************************/
1.10.2 Abbreviation
[typing][Abbreviation]
Ctrl + JCodeBlocks
VS C# for
Tab for ~_~
[Settings->Editor] Abbreviation
abbreviation (Parametrisation)$NOW
-->
1.10.3 Personalities
CodeBlocks codeblocks
<user>.conf
default.conf
-personality=myuser CodeBlocks myuser.conf
CodeBlocks
--personality=ask
CodeBlocks
defual.conf
/Documents and Settings/Default User/Application Data/codeblocksCodeBlocks
application data
usb CodeBlocks
CodeBlocks usb default.conf
CodeBlocks
Project [Find
file]
CodeBlocks
1. #include header.hpp
open include file VS Ctrl
+ Shift + G
2. [Swap header/source]
3.
[Find declaration]
[Find implementation]
VS F12
CodeBlocks
[Search->Find][Search > Find in Files]
Alt + G Ctrl + Alt + G /
// * ?
Visual Assist VS
VS Ctrl + Tag
VS
Global functions:
Global variables
1.10.7
CodeBlocks
[Settings->Environment] chm Help Files
F1
1.10.8
[Tools->Configuration Tools>Add] CodeBlocks
CodeBlocks (Built-in)
${PROJECT_DIR} CodeBlocks
CodeBlocks
Notepad++
Dos ~~
CodeBlocks
[Search->Goto next
changed line][Search->Goto previous changed line]
Ctrl + F3 Ctrl + Shift + F3VS
undo/redo (changebars)
[Edit->Clear changes history]
1.11.2
CodeBlocks windows DDEDynamic
Data Exchange TCP
CodeBlocks
[<command>(<parameter>)
1.11.3
Path
CodeBlocks
CodeBlocks
[Settings->Environment] Environment Varibales Create
1.11.4
CodeBlocks //
default.conf Cdoeblocks
--personality=ask
CodeBlocks [View->Layouts->Save
current][View->Layouts->Layout name]
[View->Perspectives]/
1.11.5
CodeBlocks
CodeBlocks
Alt + F5(Active) VS
Alt + F6
F11(name.cpp)(name.h)
1.11.6
Build Log
[Settings->Compiler and Debugger] Other
Settings Compiler logging
1.11.7
CodeBlocks
Ctrl
[Edit->Special commands->Zoom->Reset]
1.11.8
CodeBlcoks
[Settings->Editor->Other Options] Word
warp
1.11.9
CodeBlocks Alt
VS
1.11.10
CodeBlocks
[Settings->Editor->Folding]
depth limit
1.11.11
CodeBlocks include
/CodeBlocks
[Settings->Editors->Code completion]
Ctrl + Space Ctrl + Space
[Settings->Editor->Syntax highlighting]
CodeBlocks
ThreadSearch ThreadSearch
Project filesWorkspace filesThreadSearch
ThreadSearch
1.11.13
Add
lib
<path>/libs/lib<name>.a<name>
1.11.14
name.c/cpp name.o
name.exe name.elf
CodeBlocks
[Properties] Build
1.11.15
CodeBlcoks
[Settings->Environment->Autosave]
1.11.16
CodeBlocks
[Settings->Environment settings->Files extension handling]
Launch an external programLaunch the associated
applicationOpen it in Code::Blocks editor
Code::Blocks
1.12 CodeBlocks
CodeBlocks
CodeBlocks scriptable CodeBlocks
/h, --help
--rebuild
--build
--target=<str>--target=Release
--no-batch-window-close
--batch-build-notify
--safe-mode
> <build log file> DOS/*nix shell
CodeBlocks
1.13
IDE CodeBolcks
CodeBlocks VS CodeBlocks
Function
Shortcut Key
Ctrl + Z
Ctrl + Shift + Z
Ctrl + X
Ctrl + C
Ctrl + V
Ctrl + A
F11
Ctrl + Shift + C
Ctrl + Shift + X
Ctrl + D
Auto-complete / Abbreviations
Ctrl + B
Alt + PgUp
Alt + PgDown
F12
Shift + F12
CodeBlocks rebound
Function
Shortcut Key
Ctrl + Tab
Indent block.
Tab
Dedent block.
Shift + Tab
Ctrl + BackSpace
Ctrl + Delete
Ctrl + Shift +
BackSpace
Go to start of document.
Ctrl + Home
Alt + Home
Go to end of document.
Ctrl + End
Alt + End
Ctrl + F2
Go to next bookmark.
F2
Alt + F2
Find selection.
Ctrl + F3
Ctrl + Shift + F3
Scroll up.
Ctrl + Up
Scroll down.
Ctrl + Down
Line cut.
Ctrl + L
Line copy.
Ctrl + Shift + T
Line delete.
Ctrl + Shift + L
Ctrl + T
Line duplicate.
Ctrl + D
Ctrl + K
Ctrl + Shift + K
Ctrl + J
Ctrl + Shift + J
Ctrl + [
Ctrl + ]
Ctrl + Left
Ctrl + Right
Ctrl + /
Ctrl + /
Files
Function
New file or project
Shortcut Key
Ctrl + N
Ctrl + S
Ctrl + Shift + S
Ctrl + F4 / Ctrl + W
Shortcut Key
Ctrl + Tab
View
Function
Shortcut Key
F2
Shift + F2
Ctrl + Shift + Up
Alt + F5
Alt + F6
Zoom in / out
Focus editor
CTRL + Alt + E
Search
Function
Shortcut Key
Find
Ctrl + F
Find next
F3
Find previous
Shift + F3
Find in files
Crtl + Shift + F
Replace
Ctrl + R
Replace in files
Ctrl + Shift + R
Goto line
Ctrl + G
Ctrl + F3
Alt + G
Goto function
Ctrl + Alt + G
Ctrl + PgUp
Ctrl + PgDn
Goto declaration
Ctrl + Shift + .
Goto implementation
Ctrl + .
Ctrl + Alt + .
Build
Function
Build
Shortcut Key
Ctrl + F9
Ctrl + F10
F9
Rebuild
Ctrl + F11
Debug
Function
Shortcut Key
Debug
F8
Continue debugging
Ctrl + F7
Shift + F7
Toggle breakpoint
F5
Run to cursor
F4
Previous error
Alt + F1
Next error
Alt + F2