在Linux中打开codeblocks不能自动缩进,解决: 编程
安装codeblocks-contrib,在终端中输入: 框架
sudo apt-get install codeblocks-contrib
重启codeblocks便可 spa
改变缩进大小: code
Setings -> Editor -> General setings -> Font 中 将TAB size in space增大到8 get
自动补全代码框架: it
Setings -> Editor -> Abbreviation,里面定义了许多缩写,能够按照本身习惯增长修改,编程时只要输入这些缩写,按Ctrl+J,就能够自动完成经常使用的代码框架,并将光标放在恰当的地方(自定义时用|表达)
io
已经输入的词自动完成: class
Setings -> Editor -> Keyboard short-cuts -> Edit -> Editor Tweaks -> Complete code 快捷键改成Ctrl+Tab(或其余)
终端
其余设置:
方法
Setings -> Editor -> Code pompletion -> Delay for auto-kick-in when typing [.::->] 改成200ms,能够快点弹出提示
若是声明了一个类,在cpp文件中右击,Insert->All class methods without implementation...来插入你还没定义的方法的定义