注释模板
- 首先点击菜单栏的“File“->“Settings”,打开Settings窗口
- 在搜索框中输入“Code Templates”
- 选中Templates里面的Class
- 选中Includes里面的File header
- 在右边的录入框中添加注释模板
快捷键配置
- Settings –> Keymap
拼写检查
- Settings –> Inspections –> Spelling
- 选择是否检查
界面设置
- 默认为灰色界面,可以选择使用其他界面
- Settings –> Appearance –> Theme ,选择 Darcula 主题即可
字体设置
- Settings –> Appearance
- 勾选 Override default fonts by (not recommended) ,选择一款支持中文的字体即可
默认文件编码
- Settings –> File Encodings
- 勾选Transparent native-to-ascii conversion
- 更改properties files、project Encoding、IDE Encoding三个编码为utf-8
插件选择
- Settings –> Plugins
- 勾选或取消插件
常用设置:
1.Tab不用4个空格Code Style-> Java ->Tabs and Indents->Use tab character
Code Style->General->Use tab character (例如:版本控制Diff界面按下Tab)
2.可视化Tab和空格
Settings->IDE Settings->Editor->Appearance->Show whitespaces
3.显示代码行数
Settings->IDE Settings->Editor->Appearance->Show line numbers
4.修改代码字体大小
Settings->IDE Settings->Editor->Colors & Fonts ->Font->Save As->改个名字后才能改字体大小
5.鼠标悬浮显示doc
Settings->IDE Settings->Editor->Show quick doc on mouse move
6.空行的Tab和空格被自动干掉
Settings->IDE Settings->Editor->Other->Strip trailing spaces on Save->None
常用快捷键:
首先改为Eclipse快捷键(然后大部分快捷键都会跟Eclipse一致了)
Settings->IDE Settings->Keymap->Keymaps选择Eclipse1.像Eclipse那样快速跳出括号
Keymap->Editor Actions->Complete Current Statement:默认是Ctrl+Shift+Enter;Shift+Enter则不管现在光标在哪个位置,直接新开一行
2.代码提示列表(Eclipse中的Content Assist,Alt+/)
Keymap->Main Menu->Code->Completion->Basic:默认是Ctrl+Space
3.错误修正提示列表(Eclipse中的Quick Fix,Ctrl+1)
Keymap->Other->Show Intention Action:默认是Alt+Enter
4.快速Overried方法
Keymap->Main menu->Code->Override Methods:需要自己设定
5.Eclipse中的outline
Keymap->Main Menu->Navigate->File Structure:默认是Ctrl+F3
6.版本控制中Diff的Next和Prev
Keymap->Other->Move to the next difference:默认是Ctrl+f7
Keymap->Other->Move to the previous difference:默认是Shift+f7