Intellij IDEA Tutorial (xiv) IDEA Keyboard Shortcuts

Reprinted from -https: //blog.csdn.net/qq_38963960/article/details/89552704

Ctrl

hot key Introduction
Ctrl + F Find text (necessary) in the current file
Ctrl + R Text replacement (necessary) in the current file
Ctrl + Z Undo (essential)
Ctrl + Y Delete the line where the cursor or delete the selected row (essential)
Ctrl + X Cut or Cut cursor line selection
Ctrl + C Copy the line where the cursor or copy selected content
Ctrl + D Replication or copying the cursor line selection, and copy the contents of the inserted below the cursor position (mandatory)
Ctrl + W Progressive selected code blocks. Alternatively word or paragraph where the cursor will continuously press and then expanded in the range selected on the basis of the original selected (mandatory)
Ctrl + E Display a list of recently opened files record
Ctrl + N Find a class based on the class name of the input file
Ctrl + G Jump in the current file to the specified row
Ctrl + J Insert custom dynamic code templates
Ctrl + P The method parameter prompt is displayed
Ctrl + Q Above the cursor variable / class name / method name, etc. (you can also be prompted to add time press) to display the document content
Ctrl + U A method to get the current cursor parent class / interface definition
Ctrl + B The method defines an interface or into the cursor / variable out, left-click equivalent to Ctrl +
Ctrl + K Version control submitted projects, the need for this project has added to version control available
Ctrl + T Updated version control project, the need for this project has added to version control available
Ctrl + H Displays the hierarchy of the current class
Ctrl + O The method of selecting the rewritable
Ctrl + I Selection inheritable
Ctrl + + Expand Code
Ctrl + - Folding Code
Ctrl + / Note the cursor line, use different symbols based on the current annotation different file type (mandatory)
Ctrl + [ Move the cursor to the beginning of the current brace location code
Ctrl + ] Move the cursor to the current code resides braces end position
Ctrl + F1 An error message is displayed on the error code of the cursor
Ctrl + F3 Tune to the selected word at a reference location
Ctrl + F4 Close the current editor file
Ctrl + F8 In Debug mode, the cursor is currently set breakpoint behavior, if the current has been removed the breakpoint breakpoint
Ctrl + F9 Make Project perform the operation
Ctrl + F11 Select the file / folder, use the mnemonic set / cancel bookmark
Ctrl + F12 Pop the current file structure layer may be directly entered on the pop-up layer, screened
Ctrl + Tab Edit window switch, and if applied during handover Press delete, corresponding to the selected window is closed
Ctrl + Enter Smart separator line
Ctrl + End Skip to end of file
Ctrl + Home Skip to header
Ctrl + Space Basic code completion, is occupied by default on a Windows system input method, we need to modify the proposed changes as Ctrl + comma (essential)
Ctrl + Delete Delete the word behind the cursor or Chinese sentence
Ctrl + BackSpace Delete the cursor in front of the Chinese word or sentence
Ctrl + 1,2,3…9 Locating a position corresponding to the bookmark value
Ctrl + left-click On the file title to open the pop-up that file path
Ctrl + cursor Press Ctrl Do not let go, will show the class information summary cursor
Ctrl + left arrow The cursor jumps to the current word / Chinese sentence beginning position of the left
Ctrl + right arrow keys The cursor jumps to the current word / sentence to the right of the beginning of the Chinese position
Ctrl + arrow keys ago Effects equivalent to the mouse wheel forward
After the direction keys Ctrl + Effects equivalent to the mouse wheel backward

Alt

hot key Introduction
Alt + ` Versioning common operation display the popup menu
Alt + Q Pop up a prompt declaration of the current class display / contextual information
Alt + F1 Displays the current file selection pop-up target layer, the layer have a lot of pop-up target can be selected
Alt + F2 For the front page, the browser opens to display all kinds of target selection pop-up layer
Alt + F3 Select the text, one by one down to find the same text, and highlight
Alt + F7 Find a way to place the cursor / variable / class is called
Alt + F8 In the state of Debug, select the object, the pop-up can enter the calculation expression debugging box to see the results of the commissioning input content
Alt + Home Positioning / Navigation Bar to display the current file
Alt + Enter IntelliJ IDEA 根据光标所在问题,提供快速修复选择,光标放在的位置不同提示的结果也不同 (必备)
Alt + Insert 代码自动生成,如生成对象的 set / get 方法,构造函数,toString() 等
Alt + 左方向键 按左方向切换当前已打开的文件视图
Alt + 右方向键 按右方向切换当前已打开的文件视图
Alt + 前方向键 当前光标跳转到当前文件的前一个方法名位置
Alt + 后方向键 当前光标跳转到当前文件的后一个方法名位置
Alt + 1,2,3…9 显示对应数值的选项卡,其中 1 是 Project 用得最多

Shift

快捷键 介绍
Shift + F1 如果有外部文档可以连接外部文档
Shift + F2 跳转到上一个高亮错误 或 警告位置
Shift + F3 在查找模式下,查找匹配上一个
Shift + F4 对当前打开的文件,使用新Windows窗口打开,旧窗口保留
Shift + F6 对文件 / 文件夹 重命名
Shift + F7 在 Debug 模式下,智能步入。断点所在行上有多个方法调用,会弹出进入哪个方法
Shift + F8 在 Debug 模式下,跳出,表现出来的效果跟 F9 一样
Shift + F9 等效于点击工具栏的 Debug 按钮
Shift + F10 等效于点击工具栏的 Run 按钮
Shift + F11 弹出书签显示层
Shift + Tab 取消缩进
Shift + ESC 隐藏当前 或 最后一个激活的工具窗口
Shift + End 选中光标到当前行尾位置
Shift + Home 选中光标到当前行头位置
Shift + Enter 开始新一行。光标所在行下空出一行,光标定位到新行位置
Shift + 左键单击 在打开的文件名上按此快捷键,可以关闭当前打开文件
Shift + 滚轮前后滚动 当前文件的横向滚动轴滚动

Ctrl + Alt

快捷键 介绍
Ctrl + Alt + L 格式化代码,可以对当前文件和整个包目录使用 (必备)
Ctrl + Alt + O 优化导入的类,可以对当前文件和整个包目录使用 (必备)
Ctrl + Alt + I 光标所在行 或 选中部分进行自动代码缩进,有点类似格式化
Ctrl + Alt + T 对选中的代码弹出环绕选项弹出层
Ctrl + Alt + J 弹出模板选择窗口,讲选定的代码加入动态模板中
Ctrl + Alt + H 调用层次
Ctrl + Alt + B 在某个调用的方法名上使用会跳到具体的实现处,可以跳过接口
Ctrl + Alt + V 快速引进变量
Ctrl + Alt + Y 同步、刷新
Ctrl + Alt + S 打开 IntelliJ IDEA 系统设置
Ctrl + Alt + F7 显示使用的地方。寻找被该类或是变量被调用的地方,用弹出框的方式找出来
Ctrl + Alt + F11 切换全屏模式
Ctrl + Alt + Enter 光标所在行上空出一行,光标定位到新行
Ctrl + Alt + Home 弹出跟当前文件有关联的文件弹出层
Ctrl + Alt + Space 类名自动完成
Ctrl + Alt + 左方向键 退回到上一个操作的地方 (必备)(注意与其他软件快捷键冲突)
Ctrl + Alt + 右方向键 前进到上一个操作的地方 (必备)(注意与其他软件快捷键冲突)
Ctrl + Alt + 前方向键 在查找模式下,跳到上个查找的文件
Ctrl + Alt + 后方向键 在查找模式下,跳到下个查找的文件

Ctrl + Shift

快捷键 介绍
Ctrl + Shift + F 根据输入内容查找整个项目 或 指定目录内文件 (必备)
Ctrl + Shift + R 根据输入内容替换对应内容,范围为整个项目 或 指定目录内文件 (必备)
Ctrl + Shift + J 自动将下一行合并到当前行末尾 (必备)
Ctrl + Shift + Z 取消撤销 (必备)
Ctrl + Shift + W 递进式取消选择代码块。可选中光标所在的单词或段落,连续按会在原有选中的基础上再扩展取消选中范围 (必备)
Ctrl + Shift + N 通过文件名定位 / 打开文件 / 目录,打开目录需要在输入的内容后面多加一个正斜杠 (必备)
Ctrl + Shift + U 对选中的代码进行大 / 小写轮流转换 (必备)
Ctrl + Shift + T 对当前类生成单元测试类,如果已经存在的单元测试类则可以进行选择
Ctrl + Shift + C 复制当前文件磁盘路径到剪贴板
Ctrl + Shift + V 弹出缓存的最近拷贝的内容管理器弹出层
Ctrl + Shift + E 显示最近修改的文件列表的弹出层
Ctrl + Shift + H 显示方法层次结构
Ctrl + Shift + B 跳转到类型声明处
Ctrl + Shift + I 快速查看光标所在的方法 或 类的定义
Ctrl + Shift + A 查找动作 / 设置
Ctrl + Shift + / 代码块注释 (必备)
Ctrl + Shift + [ 选中从光标所在位置到它的顶部中括号位置
Ctrl + Shift + ] 选中从光标所在位置到它的底部中括号位置
Ctrl + Shift + + 展开所有代码
Ctrl + Shift + - 折叠所有代码
Ctrl + Shift + F7 高亮显示所有该选中文本,按Esc高亮消失
Ctrl + Shift + F8 在 Debug 模式下,指定断点进入条件
Ctrl + Shift + F9 编译选中的文件 / 包 / Module
Ctrl + Shift + F12 编辑器最大化
Ctrl + Shift + Space 智能代码提示
Ctrl + Shift + Enter 自动结束代码,行末自动添加分号 (必备)
Ctrl + Shift + Backspace 退回到上次修改的地方
Ctrl + Shift + 1,2,3…9 快速添加指定数值的书签
Ctrl + Shift + 左方向键 在代码文件上,光标跳转到当前单词 / 中文句的左侧开头位置,同时选中该单词 / 中文句
Ctrl + Shift + 右方向键 在代码文件上,光标跳转到当前单词 / 中文句的右侧开头位置,同时选中该单词 / 中文句
Ctrl + Shift + 左方向键 在光标焦点是在工具选项卡上,缩小选项卡区域
Ctrl + Shift + 右方向键 在光标焦点是在工具选项卡上,扩大选项卡区域
Ctrl + Shift + 前方向键 光标放在方法名上,将方法移动到上一个方法前面,调整方法排序
Ctrl + Shift + 后方向键 光标放在方法名上,将方法移动到下一个方法前面,调整方法排序

Alt + Shift

快捷键 介绍
Alt + Shift + N 选择 / 添加 task
Alt + Shift + F 显示添加到收藏夹弹出层
Alt + Shift + C 查看最近操作项目的变化情况列表
Alt + Shift + F 添加到收藏夹
Alt + Shift + I 查看项目当前文件
Alt + Shift + F7 在 Debug 模式下,下一步,进入当前方法体内,如果方法体还有方法,则会进入该内嵌的方法中,依此循环进入
Alt + Shift + F9 弹出 Debug 的可选择菜单
Alt + Shift + F10 弹出 Run 的可选择菜单
Alt + Shift + 左键双击 选择被双击的单词 / 中文句,按住不放,可以同时选择其他单词 / 中文句
Alt + Shift + 前方向键 移动光标所在行向上移动
Alt + Shift + 后方向键 移动光标所在行向下移动

Ctrl + Shift + Alt

快捷键 介绍
Ctrl + Shift + Alt + V 无格式黏贴
Ctrl + Shift + Alt + N 前往指定的变量 / 方法
Ctrl + Shift + Alt + S 打开当前项目设置
Ctrl + Shift + Alt + C 复制参考信息

其他

快捷键 介绍
F2 跳转到下一个高亮错误 或 警告位置 (必备)
F3 在查找模式下,定位到下一个匹配处
F4 编辑源
F7 在 Debug 模式下,进入下一步,如果当前行断点是一个方法,则进入当前方法体内,如果该方法体还有方法,则不会进入该内嵌的方法中
F8 在 Debug 模式下,进入下一步,如果当前行断点是一个方法,则不进入当前方法体内
F9 在 Debug 模式下,恢复程序运行,但是如果该断点下面代码还有断点则停在下一个断点上
F11 添加书签
F12 回到前一个工具窗口
Tab 缩进
ESC 从工具窗口进入代码文件窗口
连按两次Shift 弹出 Search Everywhere 弹出层
发布了81 篇原创文章 · 获赞 46 · 访问量 51万+

Guess you like

Origin blog.csdn.net/u013254183/article/details/105362095