IDEA打造快捷属性 摆脱鼠标 高效操作

快捷键整理如下: Alt键基本为自定义快捷键

本文为本人整理的IDEA快捷键,为了摆脱鼠标,实现无鼠标操作,其中部分为个人自定的快捷键内容,不具备普遍借鉴意义,快捷键整理内容按照字母数字顺序排序

IDEA自定义快捷键所在位置:C:\Users\Administrator\.IntelliJIdea2018.2\config\keymaps

快捷键(包含自定义内容):

F~快捷键

F1: 运行/调试配置 自定义 *
Alt + F1: Select current file or symbol in any view 
Ctrl + F1: Show descriptions of error or warning at caret 错误描述
Shift + F1: External Doc 外部文档
F2 / Shift + F2: Next/previous highlighted error 下一个/前一个高亮错误
Ctrl + F2:  停止运行
F3: Find next 查找下一个 *
Shift + F3: Find previous 查找上一个 *
F4: Edit source / View source 查看源码
Ctrl + F4: Close active editor tab 关闭编辑卡
F5: copy 复制 
F6: move 移动
Shift + F6: Rename 重命名 *
Ctrl + F6: 查看表结构

debug快捷键常用:

F7: step into 步入
F8: step over 步过
Shift + F7: Smart step into 智能步入
Shift + F8: Smart step over 智能步过    
Alt + F9: Run to cursor 运行至光标处
Alt + F8: Evaluate expression 计算表达式
Ctrl + F8: Toggle breakpoint 切换断点
Ctrl + Shift + F8: View breakpoints 查看断点
F9: Resume program 恢复程序
Ctrl + F9: Make project (compile modifed and dependent) 构建项目
Ctrl + Shift + F9: Compile selected file, package or module 重新编译
Shift + F10/F9: Run/Debug 运行/debug运行
Alt + Shift + F10/F9: Select configuration and run/and debug 运行/debug运行
F10: debug with Jrebel  使用jrebel运行debug
Ctrl + F10: Update Running Application 更新运行中的应用
Ctrl + Shift + F0: 打开数据库输出台等

IDEA书签快捷键:非常适合多处编辑打书签(个人非常喜欢)

F11: Toggle Bookmark 切换书签
Ctrl + F11: Toggle bookmark with mnemonic
Ctrl + #[0-9]: Go to numbered bookmark
Shift + F11: Show bookmarks

F12: Go back to previous tool window
Ctrl + F12: 文件结构
Ctrl + Alt + F12: 文件路径 快捷键冲突
Ctrl + Shift + F12: 关闭其他边框
Esc: Go to editor (from tool window)
----------------------------------------------------------------------

自定义常用:

数字

  • Alt + 1: 打开或者隐藏Project *
  • Alt + 2: 打开Application Services
  • Alt + 3: 打开DataBase *
  • Alt + 4: 打开Terminal *
  • Alt + 5: 打开Maven Projects *
  • Alt + 6: 打开Structure
  • Alt + 7: 打开Web
  • Alt + 8: 打开TODO
  • Alt + 9: 打开版本控制器
  • Alt + 0: 打开收藏
  • Alt + ,: 打开默认浏览器
  • Alt + .: 打开Debug控制台
  • Alt+; :打开datBase控制台
  • Alt+Shifr.:打开控制台

字母

  • Alt + A: 创建Java类
  • Alt + Shift + A: 创建JSP文件
  • Alt + D: 创建目录/包 Direction *
  • Alt + G: 创建HTML 文件 *
  • Alt + Shift + G: 创建JavaScript 文件
  • Alt + I: 检查代码
  • Alt + Shift + I: 代码清理
  • Alt + J: 将下一匹配项添加到选择
  • Alt + K: 管理项目
  • Alt + L: 生成JavaDoc
  • Alt + M: 计算表达式
  • Alt + Shift + M: 快速计算表达式
  • Alt + O: 关闭
  • Alt + Shift + O: 关闭其他
  • Alt + Ctrl + Shift + O: 关闭所有
  • Alt + P: 创建Project
  • Alt + Q: 创建文件(加上文件后缀创建想要创建的文件 很是通用)
  • Alt + X: 关闭项目
  • Alt + Shift + X: 关闭IDEA
  • Alt + Y: 切换全屏模式
  • Alt + Shift + Y: 切换到免打扰模式

打开菜单栏快捷键:

Alt + B: 打开构建栏
Alt + C: 打开代码栏 
Alt + Shift + C: 比较两个文件
Alt + E: 打开编辑栏
Alt + F: 打开文件栏    
Alt + H: 打开帮助栏     
Alt + N: 打开导航栏
Alt + R: 打开重构栏
Alt + S: 打开VCS栏
Alt + T: 打开工具栏
Alt + U: 打开运行栏
Alt + V: 打开视图栏
Alt + W: 打开窗口栏
Alt + Z: 打开分析栏

Alt+ 非数字 单字母快捷

Alt + F1: 选择
Alt + Enter: 导入包/自动修正 **
Alt + /: 代码提示 
Alt + insert: Generate code... (Getters, Setters,Constructors,hashCode/equals, toString) 代码生成  **  
Alt + 上/下: 去到上一个方法/下一个方法
Alt + Home: 显示导航条
Alt + 左/右: Go to next / previous editor tab 左右选择选项卡
Alt + Delete: 安全删除
Alt + Shift + I: Inspect current file with current profile 检查当前文件
Alt + Shift + F: Add to Favorites  添加到收藏
Alt + Shift + Z: 重复选择内容(自定义)

Ctrl开头基本为IDEA自带快捷键

Ctrl + Shift + A: 查找并调用编辑器的功能
Ctrl + B: 打开声明
Shift + Alt + E: Go to implementation(s) 实现
Ctrl + Shift + B: Go to type declaration 类型声明
Ctrl + E: Recent files popup 最近的文件
Ctrl + Shift + E:最近的更改
Ctrl + Alt + Shift + E: 最近更改的文件
Ctrl + F: Find 在当前页进行查找 *
Ctrl + Shift + F: Find in path 在路径中查找 * 
Ctrl + G: 跳转到行
Ctrl + H: Type hierarchy 类型层次结构
Ctrl + Shift + H: 方法层次结构
Ctrl + I: Implement methods 实现方法 *
Ctrl + Alt + I: Auto-indent line(s) 自动行缩进
Ctrl + J: Insert Live Template  插入模板 
Ctrl + Alt + J: Surround with Live Template 使用模板包围
Ctrl + Shift + J: Smart line join 连接行
Ctrl + K / Ctrl + T: Commit project to VCS/Update from VCS
Ctrl + Alt + L: Reformat code 重新格式化代码
Ctrl + N: Go to class 通过类名快速查找 *
Ctrl + Shift + N: Go to file 通过文件名快速查找工程内的文件 *
Ctrl + Alt + Shift + N: Go to symbol 通过符号定位 *
Ctrl + O: 重写方法 *
Ctrl + Alt + O: 优化导入 *
Ctrl + P: Parameter info (within method call arguments) 参数信息
Ctrl + Shift + P: 表达式类型
Ctrl + Q: Quick documentation lookup 快捷文档
Ctrl + R: Replace 替换 *
Ctrl + Shift + R: Replace in path 路径替换 *
Ctrl + Shift + S: Search structurally (Ultimate Edition only)
Ctrl + Alt + S: Open Settings dialog 打开设置
Ctrl + Alt + Shift + S: Open Project Structure dialog 打开项目结构
Ctrl + Alt + T: Surround with… (if..else, try..catch, for,synchronized, etc.) 代码包围
Ctrl + U: Go to super-method / super-class 跳转到父类方法/父类 *
Ctrl + Shift + U: Toggle case for word at caret or selected block 大小写切换
Ctrl + Shift + V: Paste from recent buffers... 从最近的粘贴板粘贴
Ctrl + W: Select successively increasing code blocks 扩展选择
Ctrl + Shift + W: Decrease current selection to previous state 缩小选择
Ctrl + X: Cut current line or selected block to clipboard 剪切 自定义
Ctrl + Shift + Enter: Complete statement 补全当前语句
Ctrl + /: Comment/uncomment with line comment 行注释 *
Ctrl + Shift + /: Comment/uncomment with block comment 块注释 *
Ctrl + , : Basic code completion (the name of any class,
method or variable)  基础代码实现
Ctrl + Shift + , : Smart code completion (filters the list ofmethods and variables by expected type) 智能代码补全
Ctrl + ]/[: Move to code block end/start 光标移动到代码块的开始/结束为止
Ctrl + Shift + ]/[: Select till code block end/start 选择内容从光标到代码块结束/开始的内容
Ctrl + -: 收缩
Ctrl + Alt + -: 递归收缩 
Ctrl + Shift + -: 全部收缩
Ctrl + =: 伸展
Ctrl + Alt + =: 递归展开
Ctrl + Shift + =: 全部展开
Shift + Esc: Hide active or last active window 隐藏活动窗口 Double Shift: Search everywhere 全局查找

常用的生成语句快捷方式,可自定义

sout -- 打印语句
iter -- 增强版for循环
fori -- for循环
psvm -- public static void main(){}
ifn  -- if null判断
inn  -- if not null判断
geti -- 单例方法getInstance(){}
St  -- String
psf  -- public static final 
psfs -- public static final String
psfi -- public static final int

猜你喜欢

转载自blog.csdn.net/YM_IlY/article/details/84980913