第一步:选择IDEA快捷键组合
 
  
   - IDEA 支持多种快捷键来源,选择IDEA快捷键组合
  
  第二步:解决快捷键冲突
 
  
   - 快捷键存在冲突的情况,主要体现在输入法:关闭冲突搜狗快捷键
  
  
 
  快捷键介绍:
  1. 按组合分类
  Alt +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Alt+0 | Commit窗口 |  | 
   
    | Alt+1 | Project窗口 |  | 
   
    | Alt+2 | Favourite窗口 |  | 
   
    | Alt+3 | Find窗口 |  | 
   
    | Alt+4 | Run窗口 |  | 
   
    | Alt+5 | Debug窗口 |  | 
   
    | Alt+6 | Problem窗口 |  | 
   
    | Alt+7 |  | File structure | 
   
    | Alt+8 | Services窗口 |  | 
   
    | Alt+9 | Git窗口 |  | 
   
    | Alt+F1 |  | Select current file or symbol in any view | 
   
    | Altl+F4 |  | Close IDEA | 
   
    | Alt+F7 |  | Find usages | 
   
    | Alt+F8 |  | Evaluate expression | 
   
    | Alt+F9 | 跳到光标 | Run to cursor | 
   
    | Alt+F10 | 跳转到当前断点出 |  | 
   
    | Alt+F12 | Terminal窗口 |  | 
   
    | Alt+J | 查询列表加选下一个 |  | 
   
    | Alt+Q | 和截图冲突我本地改为Alt+Shift+Q | Context info | 
   
    | Alt+V | 打开对应工具栏 |  | 
   
    | Alt+Home | 查看包下的类 | Show navigation bar | 
   
    | Alt+Insert |  | Generate code… (Getters, Setters, Constructors, hashCode/equals, toString) | 
   
    | Alt+Right/Left |  | Go to next / previous editor tab | 
   
    | Alt+BackQuote(`) |  | VCS Operations Popup | 
   
    | Alt+Delete |  | Safe Delete | 
   
    | Alt+Enter |  | Show intention actions and quick-fixes | 
   
    | Alt+Up/Down |  | Go to previous / next method | 
   
    | Alt+左键拖动 | 选择代码 |  | 
  
 
 
  Ctrl +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Ctrl+#[0-9] |  | Go to numbered bookmark | 
   
    | Ctrl+D |  | Duplicate current line or selected block | 
   
    | Ctrl+E |  | Recent files popup | 
   
    | Ctrl+F |  | Find | 
   
    | Ctrl+F1 |  | Show descriptions of error or warning at caret | 
   
    | Ctrl+F11 |  | Toggle bookmark with mnemonic | 
   
    | Ctrl+F12 |  | File structure popup | 
   
    | Ctrl+F2 |  | Stop | 
   
    | Ctrl+F4 |  | Close active editor tab | 
   
    | Ctrl+F5 |  | Rerun | 
   
    | Ctrl+F6 |  | Change Signature | 
   
    | Ctrl+F7 | Ctrl+F没啥区别 | Find usages in file | 
   
    | Ctrl+F8 | 增加/删除断点 | Toggle breakpoint | 
   
    | Ctrl+F9 | 编译项目 | Make project (compile modifed and dependent) | 
   
    | Ctrl+G |  | Go to line | 
   
    | Ctrl+H |  | Type hierarchy | 
   
    | Ctrl+I |  | Implement methods | 
   
    | Ctrl+J |  | Insert Live Template | 
   
    | Ctrl+K |  | Commit project to VCS | 
   
    | Ctrl+N |  | Go to class | 
   
    | Ctrl+O |  | Override methods | 
   
    | Ctrl+P |  | Parameter info (within method call arguments) | 
   
    | Ctrl+Q |  | Quick documentation lookup | 
   
    | Ctrl+R |  | Replace | 
   
    | Ctrl+S |  | Save all | 
   
    | Ctrl+T |  | Update from VCS | 
   
    | Ctrl+Tab |  | Switch between tabs and tool window | 
   
    | Ctrl+U |  | Go to super-method / super-class | 
   
    | Ctrl+W |  | Select successively increasing code blocks | 
   
    | Ctrl+Y |  | Delete line at caret | 
   
    | Ctrl+Z | 撤销 |  | 
   
    | Ctrl+/ |  | Comment/uncomment with line comment | 
   
    | Ctrl+]/[ |  | Move to code block end/start | 
   
    | Ctrl+Space |  | Basic code completion (the name of any class, method or variable) | 
   
    | Ctrl+B/Ctrl+Click/F4 |  | Go to declaration | 
   
    | Ctrl+BackQuote(`) |  | Quick switch current scheme | 
   
    | Ctrl+C/Ctrl+Insert |  | Copy current line or selected block to clipboard | 
   
    | Ctrl+Enter/Enter |  | Smart line split | 
   
    | Ctrl+Delete/Backspace |  | Delete to word end/start | 
   
    | Ctrl+NumPad- |  | Collapse code block | 
   
    | Ctrl+NumPad+ |  | Expand code block | 
   
    | Ctrl+X/Shift+Delete |  | Cut current line or selected block to clipboard | 
   
    | Ctrl+V/Shift+Insert |  | Paste from clipboard | 
   
    | Ctrl+mouseovercode |  |  | 
  
 
 
  Shift +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Shift+F1 | 如果有外部文档可以连接外部文档 | External Doc | 
   
    | Shift+F2 | 跳转到上一个高亮错误 或 警告位置 | previous highlighted error | 
   
    | Shift+F3 | 在查找模式下、查找匹配上一个 | Find previous | 
   
    | Shift+F4 | 对当前打开的文件使用新Windows窗口打开旧窗口保留 |  | 
   
    | Shift+F6 | 对文件 / 文件夹 重命名 | Rename | 
   
    | Shift+F7 | Debug 模式下,智能步入、断点所在行上有多个方法调用,会弹出进入哪个方法 | Smart Step into | 
   
    | Shift+F7 |  | previous different | 
   
    | Shift+F8 | 在 Debug 模式下,跳出,表现出来的效果跟 F9 一样 | Step out | 
   
    | Shift+F9 | 等效于点击工具栏的 Debug 按钮 | Debug | 
   
    | Shift+F10 | 等效于点击工具栏的 Run 按钮 | Run | 
   
    | Shift+F11 | 弹出书签显示层 | Show bookmarks | 
   
    | Shift+Tab | 取消缩进 | unindent selected lines | 
   
    | Shift+End | 选中光标到当前行尾位置 |  | 
   
    | Shift+Home | 选中光标到当前行头位置 |  | 
   
    | Shift+滚轮前后滚动 | 当前文件的横向滚动轴滚动 |  | 
   
    | Shift+左键单击 | 在打开的文件名上按此快捷键,可以关闭当前打开文件 |  | 
   
    | Shift+Enter | 开始新一行。光标所在行下空出一行,光标定位到新行位置 | Start new line | 
   
    | Shift+Esc |  | Hide active or last active window | 
  
 
 
  Alt+Shift +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Alt+Shift |  |  | 
   
    | Alt+Shift+C |  | View recent changes | 
   
    | Alt+Shift+F |  | Add to Favorites | 
   
    | Alt+Shift+F10 |  | Select configuration and run | 
   
    | Alt+Shift+F7 | 强制进入方法 | Force Step into | 
   
    | Alt+Shift+F8 | 强制下一步 | Force Step over | 
   
    | Alt+Shift+F9/F9 |  | Select configuration and debug | 
   
    | Alt+Shift+I |  | Inspect current file with current profile | 
   
    | Alt+Shift+J | 查询列表取消上一个加选的 |  | 
   
    | Alt+Shift+左键 | 插入光标 |  | 
  
 
 
  Ctrl+Shift +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Ctrl+Shift+#[0-9] | 直接追加numbered bookmark |  | 
   
    | Ctrl+Shift+/ |  | Comment/uncomment with block comment | 
   
    | Ctrl+Shift+[ |  | Select till code block start | 
   
    | Ctrl+Shift+\ |  | URL Mapping | 
   
    | Ctrl+Shift+] |  | Select till code block end | 
   
    | Ctrl+Shift+A |  | Find Action | 
   
    | Ctrl+Shift+B |  | Go to type declaration | 
   
    | Ctrl+Shift+BackQuote(`) |  | Branch | 
   
    | Ctrl+Shift+Backspace |  | Navigate to last edit location | 
   
    | Ctrl+Shift+C | 复制文件绝对路径 |  | 
   
    | Ctrl+Shift+E |  |  | 
   
    | Ctrl+Shift+Enter |  | Complete statement | 
   
    | Ctrl+Shift+F |  | Find in path | 
   
    | Ctrl+Shift+F10 | Recompile+Shift+F10 | Run context configuration from editor | 
   
    | Ctrl+Shift+F12 | 最大化编辑器 | Toggle maximizing editor | 
   
    | Ctrl+Shift+F2 |  | Stop Backend Progress | 
   
    | Ctrl+Shift+F4 |  | Close active run / messages / find / … tab | 
   
    | Ctrl+Shift+F6 | 重构变量的类型 |  | 
   
    | Ctrl+Shift+F7 | Ctrl+F没啥区别 | Highlight usages in file | 
   
    | Ctrl+Shift+F8 | 查看断点 | View breakpoints | 
   
    | Ctrl+Shift+F9 | Recompile+Shift+F9 | Compile selected file, package or module | 
   
    | Ctrl+Shift+H |  | Method hierarchy | 
   
    | Ctrl+Shift+I |  | Open quick definition lookup | 
   
    | Ctrl+Shift+J |  | Smart line join | 
   
    | Ctrl+Shift+K |  | Push | 
   
    | Ctrl+Shift+N |  | Go to file | 
   
    | Ctrl+Shift+NumPad- |  | Collapse all | 
   
    | Ctrl+Shift+NumPad+ |  | Expand all | 
   
    | Ctrl+Shift+O |  | codata Relevant examples | 
   
    | Ctrl+Shift+P | 查看返回值类型 |  | 
   
    | Ctrl+Shift+Q | codata 代码查询 |  | 
   
    | Ctrl+Shift+R |  | Replace in path | 
   
    | Ctrl+Shift+S | SonarLint 代码分析 |  | 
   
    | Ctrl+Shift+Space |  | Smart code completion (filters the list of methods and variables by expected type) | 
   
    | Ctrl+Shift+T | 跳到测试类 |  | 
   
    | Ctrl+Shift+U |  | Toggle case for word at caret or selected block | 
   
    | Ctrl+Shift+U | CamelCase命名切换 |  | 
   
    | Ctrl+Shift+V |  | Paste from recent bu" ers… | 
   
    | Ctrl+Shift+W |  | Decrease current selection to previous state | 
   
    | Ctrl+Shift+Y | 翻译 |  | 
   
    | Ctrl+Shift+Z | 取消撤销 |  | 
  
 
 
  Ctrl+Alt +
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | Ctrl+Alt+A |  | Add | 
   
    | Ctrl+Alt+B |  | Go to implementation(s) | 
   
    | Ctrl+Alt+C |  | Extract Constant | 
   
    | Ctrl+Alt+F |  | Extract Field | 
   
    | Ctrl+Alt+F12/Alt+F1转D | 打开本地目录 |  | 
   
    | Ctrl+Alt+F6 | 查看覆盖率 | Show Coverage Data | 
   
    | Ctrl+Alt+F7 |  | Show usages | 
   
    | Ctrl+Alt+F8 |  | Quick Evaluate expression | 
   
    | Ctrl+Alt+F9 | 强势跳到光标 | Force Run to cursor | 
   
    | Ctrl+Alt+H |  | Call hierarchy | 
   
    | Ctrl+Alt+Home | 跳转到相关的 Symbol | Releated Symbol | 
   
    | Ctrl+Alt+I |  | Auto-indent line(s) | 
   
    | Ctrl+Alt+J |  | Surround with Live Template | 
   
    | Ctrl+Alt+L |  | Reformat code | 
   
    | Ctrl+Alt+Left/Right |  | Navigate back / forward | 
   
    | Ctrl+Alt+M |  | Extract Method | 
   
    | Ctrl+Alt+N |  | Inline | 
   
    | Ctrl+Alt+O |  | Optimize imports | 
   
    | Ctrl+Alt+P |  | Extract Parameter | 
   
    | Ctrl+Alt+S |  | Open Settings dialog | 
   
    | Ctrl+Alt+Space | 补全类名 |  | 
   
    | Ctrl+Alt+T |  | Surroundwith…(if…else,try…catch, for, synchronized, etc.) | 
   
    | Ctrl+Alt+U |  | UML | 
   
    | Ctrl+Alt+V |  | Extract Variable | 
   
    | Ctrl+Alt+Z |  | Rollback | 
   
    |  |  |  | 
   
    | Ctrl+Alt+Shift |  |  | 
   
    | Ctrl+Alt+Shift+/ |  | Maintenance | 
   
    | Ctrl+Alt+Shift+C |  | Copy Reference | 
   
    | Ctrl+Alt+Shift+D |  | Show Local Changes as UML | 
   
    | Ctrl+Alt+Shift+F7 |  | Find usages Setting | 
   
    | Ctrl+Alt+Shift+J | 查询列表全部选中 |  | 
   
    | Ctrl+Alt+Shift+L | 格式化整个文件 |  | 
   
    | Ctrl+Alt+Shift+N |  | Go to symbol | 
   
    | Ctrl+Alt+Shift+S |  | Open Project Structure dialog | 
   
    | Ctrl+Alt+Shift+T | 重构菜单 |  | 
   
    | Ctrl+Alt+Shift+U |  | Pop UML | 
  
 
 
  其他
 
  
   
    | 快捷键 | 中文描述 | 英文描述 | 
  
  
   
    | 其他 |  |  | 
   
    | F2 | 跳转到下一个高亮错误 或 警告位置 | Next | 
   
    | F3 | 在查找模式下、查找匹配下一个 | Find next | 
   
    | F5 |  | Copy | 
   
    | F6 |  | Move | 
   
    | F7 | 进入方法 | Step into | 
   
    | F7 |  | next different | 
   
    | F8 | 下一步 | Step over | 
   
    | F9 | 恢复程序、直到下个断点拦截 | Resume program | 
   
    | F11/Ctrl+左键 |  | Toggle bookmark | 
   
    | F12 |  | Go back to previous tool window | 
   
    | DoubleShift |  | Search everywhere | 
   
    | Tab | 缩进 | Indent | 
   
    | Esc | 隐藏当前 或 最后一个激活的工具窗口 | Go to editor (from tool window) | 
  
 
 
  2. 按功能分类
 
 
  官方文档介绍
 
 参考:
 IDEA 官方帮助文档
 
         
        
           推荐
            
           
         
        
        
        
            
            
            【声明】本内容来自华为云开发者社区博主,不代表华为云及华为云开发者社区的观点和立场。转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息,否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱:
                
cloudbbs@huaweicloud.com
                 
评论(0)