Intellij IDEA有用、效率配置

Intellij IDEA设置位置:File->Setting,后面Setting默认在此位置下。

1)通过Ctrl + 鼠标滚轮改变字号
选中Setting->Editor->General->Change font size(Zoom) with Ctrl + Mouse Wheel

2)编辑提示相关
a)高亮匹配的括号:选中Setting->Editor->General->Highlight matched brace
b)高亮当前作用域:选中Setting->Editor->General->Highlight current scope
c)显示行号:选中Setting->Editor->General->Appearance->Show line numbers

3)字体和字号
代码显示区:Setting->Editor->Colors & Fonts->Font
编辑框:Setting->Appearance & Behavior->Appearance->Override default fonts by (not recommended)
字号需要根据显示器分辨率修改。

4)显示scala变量类型
IDEA默认鼠标放在变量上显示变量的类型:
Settings->Languages & Frameworks->Scala->Show type info on mouse motion with delay

5)自定义快捷键
Settings->Appearance & Behavior->Keymap
键盘流必备,开发效率有一定提升,附件有博主自用快捷键,vim型,取用自便。

6)常用语句缩写
main、sout、psvm等等
Settings->Editor->Live Templates,根据所需语言设置

7)自动不全不区分大小写
Settings->Editor->General->Code Completion->Case sensitive completion设置为None

8)显示代码行数
选中Settings->Editor->Appearance->Show line number

9)修改tab键和编辑器的光标位置
Settings->Editor,Allow placement of caret after end of line取消选中

10)快捷工具栏
编辑界面下,view->toolbar,返回上一个光标编辑位置等功能

11)自动保存文件
选中Settings->Appearance & Behavior-> System Settings->Save file automatically if application is idle for XX sec.(XX为自动保存时间间隔)

12)IDEA启动时不打开工程
Settings->Appearance & Behavior->System Settings->Reopen last project on startup取消选中
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章