解决Ubuntu 14.04下CodeBlocks缩进异常问题
2015-04-24 16:19
78 查看
在Linux中打开codeblocks不能自动缩进,解决:
安装codeblocks-contrib,在终端中输入:
sudo apt-get install codeblocks-contrib
重启codeblocks即可
改变缩进大小:
Setings -> Editor -> General setings -> Font 中 将TAB size in space增大到8
自动补全代码框架:
Setings -> Editor -> Abbreviation,里面定义了许多缩写,可以按照自己习惯增加修改,编程时只要输入这些缩写,按Ctrl+J,就可以自动完成常用的代码框架,并将光标放在恰当的地方(自定义时用|表达)
已经输入的词自动完成:
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...来插入你还没定义的方法的定义
安装codeblocks-contrib,在终端中输入:
sudo apt-get install codeblocks-contrib
重启codeblocks即可
改变缩进大小:
Setings -> Editor -> General setings -> Font 中 将TAB size in space增大到8
自动补全代码框架:
Setings -> Editor -> Abbreviation,里面定义了许多缩写,可以按照自己习惯增加修改,编程时只要输入这些缩写,按Ctrl+J,就可以自动完成常用的代码框架,并将光标放在恰当的地方(自定义时用|表达)
已经输入的词自动完成:
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...来插入你还没定义的方法的定义
相关文章推荐
- ubuntu下解决codeblocks刚装好时终端不能粘贴的问题
- 解决Ubuntu下Codeblocks调试中文乱码问题
- ubuntu 系统中codeblocks 设置问题——解决编译找不到编译器路径,运行时出现permission denied情况
- [Linux] ubuntu下CodeBlocks 出现的两个问题 完美解决
- [Linux] ubuntu下CodeBlocks 出现的两个问题 完美解决
- ubuntu codeblocks升级13.12失败无法回退问题解决
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- ubuntu14.04 安装搜狗拼音输入法及异常问题解决
- 解决 ubuntu 14.04下,eclipse adt-bundle-linux 闪退的问题,最新ADT-23.0.7
- Ubuntu 14.04下Redis安装报错:“You need tcl 8.5 or newer in order to run the Redis test”问题解决
- Ubuntu14.04下MySQL 5.6的修改字符集编码为UTF8(彻底解决中文乱码问题)
- Code:Blocks 中文乱码问题原因分析和解决方法!
- Codeblocks environment error编译器找不到问题解决方法
- 解决Ubuntu sudo apt-get install遇到的E: Sub-process /usr/bin/dpkg returned an error code (1)问题
- 解决问题:Ubuntu 14.04下Eclipse CDT菜单栏失效
- ubuntu 触摸板双指滑动异常以及键盘重复键异常问题解决记录
- [异常解决] ubuntu上安采用sudo启动的firefox,ibus输入法失效问题解决
- 解决Fedora上code::blocks不能编译问题
- Code:Blocks 中文乱码问题原因分析和解决方法
- 解决 The Controls collection cannot be modified because the control contains code blocks (i.e. )问题