idea_mac 快捷键整理

快捷键作用英文名称
Ctrl + Shift + Space智能代码补全Smart code completion
Double⇧全局搜索Search everywhere
⌥↩展示相关方法,新建test等Show intention actions and quick-fixes
⌘P显示接口的参数信息Parameter info
⌥↑扩大选择区域Extend selection
⌥↓缩小选择区域Shrink selection
⌘ E显示最近操作的文件列表Recent files popup

⇧F6

重命名Rename

general

快捷键作用英文名称
⌘0...⌘9打开相应工具栏Open corresponding tool window
⌘S全局保存Save all
⌘⌥Y同步、刷新Synchronize
⌘⇧F12最大化编辑区Toggle maximizing editor
⌥⇧I(0)检查当前文件与当前的配置文件Inspect current file with current profile
⌃`切换主题Quick switch current scheme
⌘ ,(逗号)打开配置对话框Open Settings dialog
⌘ ;打开项目结构对话框Open Project Structure dialog
⌘ .折叠/展开方法

debugging

快捷键作用英文名称
F8/F7F8:进入下一步,如果当前行断点是一个方法,则不进入当前方法体内 F7:进入下一步,如果当前行断点是一个方法,则进入当前方法体内,如果该方法体还有方法,则不会进入该内嵌的方法中Step over / into
⇧F7/⇧F8智能步入,断点所在行上有多个方法调用,会弹出进入哪个方法/跳出Smart step into / Step out
⌥F9运行到光标处,如果光标前有其他断点会进入到该断点Run to cursor
⌥F8计算表达式(可以更改变量值使其生效)Evaluate expression
⌘⌥R恢复程序运行,如果该断点下面代码还有断点则停在下一个断点上Resume program
⌘F8切换断点(若光标当前行有断点则取消断点,没有则加上断点)Toggle breakpoint
⌘⇧F8查看断点信息View breakpoints

search/replace

快捷键作用英文名称
Double⇧全局搜索Search everywhere
⌘ F本文件搜索Find
⌘ G/⌘⇧G搜索下一个/前一个Find next / previous
⌘ R本文件替换Replace
⌘⇧F根据路径查询Find in path
⌘⇧R根据路径替换Replace in path
⌃ G选择下一个对象,一起编辑Select next occurrence
⌃ ⌘G本文件中所有相同的对象,一起编辑Select all occurrences
⌃ G(失效)不选中同样的对象Unselect occurrence

editing

快捷键作用英文名称
⌃ Space(失效)现在切换输入法Basic code completion
⌃⇧Space智能补齐代码Smart code completion
⌘⇧↩︎(失效)Complete statement
⌘ P显示接口的参数信息Parameter info
⌘J, F1(太难操作了)快速文档查找Quick documentation lookup
⇧ F1查看外部文档(在某些代码上会触发打开浏览器显示相关文档)External Doc
⌘ + mouse鼠标放在代码上 显示代码简要信息Brief Info
⌘ F1在错误或警告处显示具体描述信息Show descriptions of error at caret
⌘ N, ⌃↩︎自动生成代码,get,set,tostring等等Generate code...
⌃ O生成重写方法Override methods
⌃ I生成实现方法Implement methods
⌘ ⌥ T包围代码(使用if…else, try…catch, for, synchronized等包围选中的代码)Surround with…
⌘ /注释Comment / uncomment with line comment
⌘ ⌥/块注释Comment / uncomment with block comment
⌥ ↑扩大选择区域Extend selection
⌥ ↓缩小选择区域Shrink selection
⌃⇧Q显示上下文信息Context info
⌥ ↩显示意向动作和快速修复代码Show intention actions and quick-fixes
⌘⌥L格式化代码Reformat code
⌃ ⌥ O优化引用Optimize imports
⌃ ⌥ I自动缩进行Auto-indent line(s)
⇥/⇧⇥锁进/取消锁进Indent / unindent selected lines
⌘ X剪切Cut current line to clipboard
⌘ C复制Copy current line to clipboard
⌘ V粘贴Paste from clipboard
⌘⇧V从最近的缓冲区粘贴Paste from recent buffers...
⌘D复制当前行Duplicate current line
⌘⌨删除当前行Delete line at caret
⌃⇧J智能的将代码拼接成一行Smart line join
⌘↩智能的拆分拼接的行Smart line split
⇧↩开始新的一行Start new line
⌘⇧U在插入符号或选定块处切换单词的大小写Toggle case for word at caret or selected block
⌘⌥⇧[/⌘⌥⇧](失效)选择直到代码块结束 / 开始Select till code block end / start
⌥ ⌦删除到单词的结尾Delete to word end
⌥ ⌨删除到单词的开头Delete to word start
⌘ +/⌘ -展开 / 折叠代码块Expand / collapse code block
⌘⇧+展开所有Expand all
⌘⇧-折叠所有Collapse all
⌘W关闭活动的编辑页Close active editor tab

refactoring

快捷键作用英文名称
F5复制其他路径下Copy
F6移动到其他路径下Move
⌘Delete安全删除Safe Delete
⇧F6重命名Rename
⌃T重构这个文件Refactor this
⌘F6(不懂)更改签名Change Signature
⌘⌥N(不懂)排队Inline
⌘⌥M所选择的代码生成一个方法Extract Method
⌘⌥V提取变量Extract Variable
⌘⌥F提取字段Extract Field
⌘⌥C提取常数Extract Constant
⌘⌥P提取参数Extract Parameter

navigation

快捷键作用英文名称
⌘O找到类Go to class
⌘⇧O找到文件Go to file
⌘⌥O前往指定的变量 / 方法Go to symbol
⌃←/⌃→(切换页面了)转到下一个 / 上一个编辑器选项卡Go to next / previous editor tab
F12返回上一个工具窗口Go back to previous tool window
⎋(找不到这个按键)Go to editor (from tool window)
⇧⎋(找不到这个按键)Hide active or last active window
⌘ L找到所在的行Go to line
⌘ E显示最近打开的文件记录列表Recent files popup
⌘⇧E最近的位置弹出窗口Recent locations popup
⌘⌥←/⌘⌥→向后导航 / 向前Navigate back / forward
⌘⇧⌨导航到上次编辑位置Navigate to last edit location
⌥ F1在任何视图中选择当前文件或符号Select current file or symbol in any view
⌘B, ⌘Click前往声明(前往接口)Go to declaration
⌘ ⌥ B前往实现类Go to implementation(s)
⌥Space, ⌘Y打开快速定义查找Open quick definition lookup
⌃⇧B转到类型声明Go to type declaration
⌘ U前往当前光标所在方法的父类的方法 / 接口定义Go to super-method / super-class
⌃↑/⌃↓前/后一个方法Go to previous / next method
⌘ ⌥ [ / ⌘ ⌥ ]到代码块起点/终点Move to code block end / start
⌘ F12文件结构弹出窗口File structure popup
⌃H类型层次Type hierarchy
⌘⇧H方法层次结构Method hierarchy
⌃⌥H调用层次结构Call hierarchy
F2/⇧F2下一个 / 上一个突出显示的错误Next / Previous highlighted error
F4/⌘ ↓编辑源 / 查看源Edit source / View source
⌥ Home显示导航栏Show navigation bar
F3切换书签Toggle bookmark
⌥ F3使用助记符切换书签Toggle bookmark with mnemonic

campile and run

快捷键作用英文名称
⌘ F9编译Build project
⌘⇧F9编译选定的文件、包或模块Compile selected file, package or module
⌃⌥R/D选择配置并运行 / 调试Select configuration and run / debug
⌃R/DRun / Debug
⌃⇧R, ⌃⇧D从编辑器运行上下文配置Run context configuration from editor
Double ⌃Run anything

usage search

快捷键作用英文名称
⌥F7/⌘F7查找用法 / 在文件中查找用法Find usages / Find usages in file
⌘⇧F7突出显示文件中的用法Highlight usages in file
⌘⌥F7对话框显示用法Show usages

VCS/LOCAL HISTORY

快捷键作用英文名称
⌘Kgit 提交将项目提交到 VCS
⌘T更新Update project from VCS
⌘⇧KpushPush commits

live templates

快捷键作用英文名称
⌘⌥J用实时模板环绕Surround with Live Template
⌘J插入实时模板Insert Live Template

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值