IDEA

窗口跳转(项目) ctrl+alt+[ window->next project window
窗口跳转(项目) ctrl+alt+] window->previous project window
查找最近文件 ctrl+E
查找最近修改的文件 ctrl+shift+E
跳转到上一次修改的地方 ctrl+shift+backspace navigate->last edit location
跳转到下一次修改的地方 navigate->next edit location
跳转到上一个浏览的地方 ctrl+shift+左箭头 navigate->back
跳转到下一个浏览的地方 ctrl+shift+右箭头 navigate->forward
设置书签 ctrl+F11
跳转书签 ctrl+数字键
打开最爱 alt+2
收藏最爱(收藏类,函数) alt+shift+F
从代码编辑区跳转到文件区alt+1
从文件区跳转到代码编辑区esc
精确搜索类 ctrl+N navigate->class
精确搜索(包含jar中的类) ctrl+N->ctrl+N navigate->class
精确搜索文件 ctrl+shift+N navigate->file
精确搜索函数 ctrl+shift+alt+N navigate->symbol
精确搜索字符串 ctrl+shift+F edit->find->find in path...
批量列操作 ctrl+alt+shift+J 选中文本 edit->find->select all Occurrences
跳转至单词开头 ctrl+左箭头
跳转至单词结尾 ctrl+右箭头
代码格式化 ctrl+alt+L
导包
移除无用的包 ctrl+alt+O
复制行 ctrl+D
智能代码补全 ctrl+shift+space
断点调试 F7 F8 F9

settings

File | Project Structure | Project 选择 project SDK 1.8 选择 project language level 8 配置SDK
File | Settings | Build, Execution, Deployment | Build Tools | Maven 设置maven_home和settings.xml 配置maven
File | other settings | default settings | maven 修改maven默认配置
File | other settings | default Project Structure | Project 修改SDK默认配置
File | Settings | Editor | File Encodings 设置UTF-8 设置编码格式
File | Settings | Build, Execution, Deployment | Compiler | Annotation Processors 设置Enable 配置启用注解处理器 lombok需要开启
File | Settings | Build, Execution, Deployment | Compiler | build project automatically & compile independent module in parallel 自动编译&并行编译
File | Settings | Appearance & Behavior | Appearance 主题
File | Settings | Editor | General | change font size with ctrl + mouse wheel 鼠标滚轮修改字体大小
File | Settings | Editor | General | show quick doc on mouse move 鼠标悬停提示
File | Settings | Editor | General | Auto Import | add unambiguous imports on the fly 勾选自动导包
File | Settings | Editor | General | Auto Import | aoptimize imports on the fly 勾选优化导包
File | Settings | Editor | General | Appearance | show line numbers 显示行号
File | Settings | Editor | General | Appearance | show method separators 显示方法分隔符
File | Settings | Editor | General | Code Completion | case sensitive completion 改为none智能提示不区分大小写
File | Settings | Editor | General | Editor Tabs | show tabs in single row 多行显示tabs
File | Settings | Editor | Font 字体和行间距
File | Settings | Editor | Color Scheme | Color Scheme Font 单独设置主题字体
File | Settings | Editor | Color Scheme | Console Font 单独设置控制台字体
File | Settings | Editor | Color Scheme | Language Defaults |comments 设置注释字体
File | Settings | Editor | Code Style | Java | import 导包的编码风格
File | Settings | Editor | Code Style | Java | Tabs and Indents 不要勾选Use tab character,tab键会转成4个空格

设置文件头 File | Settings | Editor | File and Code Templates | include -> file header

/**
 * @description: 
 * @author: ${USER}
 * @date: ${YEAR}-${MONTH}-${DAY} ${TIME}
 */

省电模式 file -> power save mode
水平显示&垂直显示 java文件右键-> split

设置快捷键 File | Settings | Keymap 选中 右键 Add keyboard shortcut
自定义模板 File | Settings | Editor | Live Templates
不可编辑模板 File | Settings | Editor | General | Postfix Completion
for 循环
sout 输出
field 属性
return 返回值
nn 不为空

动作查找 ctrl+shift+A help->find Action

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。