# 预定义 Windows 键映射

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com/zh-cn/help/idea/llms.txt).

> **Note:**
> 您可以在  `设置 | 键位图` 中找到所有快捷键并进行修改。
>
>
>
> 您还可以打印 [默认键位映射参考卡](https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf)。

## IntelliJ  IDEA 的顶级键盘快捷键

|  |  |
| --- | --- |
|  [全局搜索](searching-everywhere.html)  |  按两次 `Shift`  |
|  [查找操作...](searching-everywhere.html#search_actions)  |  `Ctrl+Shift+A`  |
|  [显示 项目 窗口](null)  |  `Alt+1`  |
|  [重建](null)  |  `Ctrl+Shift+F9`  |
|  [显示意图操作](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`  |
|  [最近打开的文件](null)  |  `Ctrl+E`  |
|  [查找用法](find-highlight-usages.html#find-usages)  |  `Alt+F7`  |
|  [在...中选择](null)  |  `Alt+F1`  |
|  [设置...](null)  |  `Ctrl+Alt+S`  |
|  [生成...](null)  |  `Alt+Insert`  |
|  [运行任意项](running-applications.html)  |  按两次 `Ctrl`  |
|  [调试...](null)  |  `Alt+Shift+F9`  |
|  [查看断点...](null)  |  `Ctrl+Shift+F8`  |
|  [附加到进程...](null)  |  `Ctrl+Alt+F5`  |
|  [VCS 操作弹出窗口……](null)  |  `Alt+``  |
|  [对此重构……](null)  |  `Ctrl+Alt+Shift+T`  |
|  [重新格式化代码](null)  |  `Ctrl+Alt+L`  |

## 构建项目

|  |  |
| --- | --- |
|  [此目录中的新内容](null)  |  `Ctrl+Alt+Insert`  |
|  [构建项目](null)  |  `Ctrl+F9`  |
|  [重建](null)  |  `Ctrl+Shift+F9`  |

## 基本编辑

|  |  |
| --- | --- |
|  [剪切](null)  |  `Ctrl+X`  |
|  [复制](null)  |  `Ctrl+C`  |
|  [粘贴](null)  |  `Ctrl+V`  |
|  [粘贴为纯文本](null)  |  `Ctrl+Alt+Shift+V`  |
|  [从历史记录中粘贴...](null)  |  `Ctrl+Shift+V`  |
|  [复制路径](null)  |  `Ctrl+Shift+C`  |
|  [复制引用](null)  |  `Ctrl+Alt+Shift+C`  |
|  [全部保存](null)  |  `Ctrl+S`  |
|  [撤销](null)  |  `Ctrl+Z`  |
|  [重做](null)  |  `Ctrl+Shift+Z`  |
|  [缩进选区](null)  |  `Tab`  |
|  [取消行或选择的缩进](null)  |  `Shift+Tab`  |
|  [自动缩进行](null)  |  `Ctrl+Alt+I`  |
|  [开始新建行](null)  |  `Shift+Enter`  |
|  [在当前行之前开始新行](null)  |  `Ctrl+Alt+Enter`  |
|  [删除行](null)  |  `Ctrl+Y`  |
|  [合并行](null)  |  `Ctrl+Shift+J`  |
|  [复制行或选择](null)  |  `Ctrl+D`  |
|  [切换大小写](null)  |  `Ctrl+Shift+U`  |
|  [临时文件](null)  |  `Ctrl+Alt+Shift+Insert`  |
|  [在新窗口中打开源码](null)  |  `Shift+F4`  |
|  [增大所有编辑器的字体大小](using-code-editor.html#increase_decrease_font)  |  `Alt+Shift+.`  |
|  [缩小所有编辑器中的字体大小](using-code-editor.html#increase_decrease_font)  |  `Alt+Shift+Comma`  |

## 文本光标导航

|  |  |
| --- | --- |
|  [将文本光标移动到上一个单词](null)  |  `Ctrl+Left`  |
|  [将文本光标移至下一个单词](null)  |  `Ctrl+Right`  |
|  [将光标移动到行首](null)  |  `Home`  |
|  [将插入光标移至行尾](null)  |  `End`  |
|  [移动文本光标到匹配的大括号](null)  |  `Ctrl+Shift+M`  |
|  [将文本光标移动到代码块起始位置](null)  |  `Ctrl+[`  |
|  [光标移到代码块末尾](null)  |  `Ctrl+]`  |
|  [下一方法](null)  |  `Alt+Down`  |
|  [上一个方法](null)  |  `Alt+Up`  |
|  [将插入点移到页面顶部](null)  |  `Ctrl+Page Up`  |
|  [将文本光标移动到页面底部](null)  |  `Ctrl+Page Down`  |
|  [Page Up](null)  |  `Page Up`  |
|  [下一页](null)  |  `Page Down`  |
|  [将光标移动到文本开始处](null)  |  `Ctrl+Home`  |
|  [将光标移至文本末尾](null)  |  `Ctrl+End`  |

## 选择文本

|  |  |
| --- | --- |
|  [全选](null)  |  `Ctrl+A`  |
|  [用选择左对齐](null)  |  `Shift+Left`  |
|  [右侧选择](null)  |  `Shift+Right`  |
|  [将光标移动到上一个单词并选择](null)  |  `Ctrl+Shift+Left`  |
|  [将文本光标移动到下一个单词并选择](null)  |  `Ctrl+Shift+Right`  |
|  [将文本光标移动到行首并选择](null)  |  `Shift+Home`  |
|  [将文本光标移动到行尾并选择](null)  |  `Shift+End`  |
|  [使用选择向上](null)  |  `Shift+Up`  |
|  [下移选择](null)  |  `Shift+Down`  |
|  [移动文本光标到代码块开头并选中](null)  |  `Ctrl+Shift+[`  |
|  [将文本光标移动到代码块结束并选中](null)  |  `Ctrl+Shift+]`  |
|  [移动文本光标到页面顶部并选择](null)  |  `Ctrl+Shift+Page Up`  |
|  [将文本光标移动到页面底部并选择](null)  |  `Ctrl+Shift+Page Down`  |
|  [向上翻页并选择](null)  |  `Shift+Page Up`  |
|  [向下翻页并选择](null)  |  `Shift+Page Down`  |
|  [移动文本光标到文本开始并选择](null)  |  `Ctrl+Shift+Home`  |
|  [移动文本光标至文本末尾并选中](null)  |  `Ctrl+Shift+End`  |
|  [扩展选择](null)  |  `Ctrl+W`  |
|  [缩小选择范围](null)  |  `Ctrl+Shift+W`  |

## 代码折叠

|  |  |
| --- | --- |
|  [展开](null)  |  `Ctrl+NumPad +`  |
|  [折叠](null)  |  `Ctrl+NumPad -`  |
|  [递归展开](null)  |  `Ctrl+Alt+NumPad +`  |
|  [递归折叠](null)  |  `Ctrl+Alt+NumPad -`  |
|  [全部展开](null)  |  `Ctrl+Shift+NumPad +`  |
|  [全部折叠](null)  |  `Ctrl+Shift+NumPad -`  |
|  [折叠选择](null)  |  `Ctrl+.`  |

## 多个文本光标和选择范围

|  |  |
| --- | --- |
|  [添加/删除文本光标](multicursor.html#add-carets-at-selected-locations)  |  `Alt+Shift+Click`  |
|  [切换列选择模式](multicursor.html#column_selection)  |  `Alt+Shift+Insert`  |
|  [克隆插入点上方](multicursor.html#add-carets-above-or-below-the-current-caret)  |  双击 `Ctrl` +  `向上`   |
|  [在下方克隆文本光标](multicursor.html#add-carets-above-or-below-the-current-caret)  |  双击 `Ctrl` +  `向下`   |
|  [在选区中的每行添加文本光标](multicursor.html#add-carets-to-the-end-of-each-line-in-the-selected-region)  |  `Alt+Shift+G`  |
|  [为下一个匹配项添加选择](multicursor.html#multiple_words)  |  `Alt+J`  |
|  [选择所有匹配项](multicursor.html#multiple_words)  |  `Ctrl+Alt+Shift+J`  |
|  [取消选择上一个匹配项](multicursor.html#multiple_words)  |  `Alt+Shift+J`  |
|  [创建矩形选择](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Alt+Shift+Middle-Click`  |
|  [拖动以创建矩形选择](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Alt+Click`  |
|  [拖动以创建多个矩形选择](multicursor.html#use-mouse-to-select-rectangular-fragments-of-text-in-normal-selection-mode)  |  `Ctrl+Alt+Shift+Click`  |

## 编码辅助

|  |  |
| --- | --- |
|  [显示意图操作](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`  |
|  [基本补全](null)  |  `Ctrl+Space`  |
|  [类型匹配补全](null)  |  `Ctrl+Shift+Space`  |
|  [第二基本补全](null)  |  `Ctrl+Alt+Space`  |
|  [完成当前语句](null)  |  `Ctrl+Shift+Enter`  |
|  [重新格式化代码](null)  |  `Ctrl+Alt+L`  |
|  [参数信息](viewing-reference-information.html#view-parameter-info)  |  `Ctrl+P`  |
|  [快速文档](viewing-reference-information.html#inline-quick-documentation)  |  `Ctrl+Q`  |
|  [上移语句](null)  |  `Ctrl+Shift+Up`  |
|  [下移语句](null)  |  `Ctrl+Shift+Down`  |
|  [左移元素](null)  |  `Ctrl+Alt+Shift+Left`  |
|  [右移语句](null)  |  `Ctrl+Alt+Shift+Right`  |
|  [向上移动行](null)  |  `Alt+Shift+Up`  |
|  [下移行](null)  |  `Alt+Shift+Down`  |
|  [使用行注释添加注释](null)  |  `Ctrl+/`  |
|  [添加块注释](null)  |  `Ctrl+Shift+/`  |
|  [用...包围](null)  |  `Ctrl+Alt+T`  |
|  [生成...](null)  |  `Alt+Insert`  |

## 上下文导航

|  |  |
| --- | --- |
|  [下一方法](null)  |  `Alt+Down`  |
|  [上一个方法](null)  |  `Alt+Up`  |
|  [转到行/列...](navigating-through-the-source-code.html#find_line)  |  `Ctrl+G`  |
|  [切换器](using-code-editor.html#ws_editor_switch_between_tabs)  |  `Ctrl+Tab`  |
|  [在...中选择](null)  |  `Alt+F1`  |
|  [最近打开的文件](null)  |  `Ctrl+E`  |
|  [最近更改](null)  |  `Alt+Shift+C`  |
|  [上次编辑位置](null)  |  `Ctrl+Shift+Backspace`  |
|  [返回](null)  |  `Ctrl+Alt+Left`  |
|  [转发](null)  |  `Ctrl+Alt+Right`  |
|  [选择下一个标签页](null)  |  `Alt+Right`  |
|  [选择上一个标签](null)  |  `Alt+Left`  |
|  [切换匿名书签](null)  |  `F11`  |
|  [用数字切换书签](bookmarks.html)  |  `Ctrl+Shift+[digit]`  |
|  [使用助记符切换书签](null)  |  `Ctrl+F11`  |
|  [显示所有书签](null)  |  `Shift+F11`  |
|  [转到带编号的书签](bookmarks.html)  |  `Ctrl+[digit]`  |
|  [显示助记书签](null)  |  `Ctrl+Shift+F11`  |
|  [显示书签窗口](null)  |  `Alt+2`  |
|  [显示结构窗口](viewing-structure-of-a-source-file.html#structure-tool-window)  |  `Alt+7`  |
|  [显示查找窗口](null)  |  `Alt+3`  |
|  [下一个出现](null)  |  `Ctrl+Alt+Down`  |
|  [上一处匹配](null)  |  `Ctrl+Alt+Up`  |

## 找到一切

|  |  |
| --- | --- |
|  [全局搜索](searching-everywhere.html)  |  按两次 `Shift`  |
|  [查找……](finding-and-replacing-text-in-file.html#find_in_file)  |  `Ctrl+F`  |
|  [查找下一个／移至下一个匹配项](finding-and-replacing-text-in-file.html#find_in_file)  |  `F3`  |
|  [查找上一个 / 移动到上一个出现位置](finding-and-replacing-text-in-file.html#find_in_file)  |  `Shift+F3`  |
|  [替换...](finding-and-replacing-text-in-file.html#replace_search_string)  |  `Ctrl+R`  |
|  [在文件中查找...](finding-and-replacing-text-in-project.html#find_in_project)  |  `Ctrl+Shift+F`  |
|  [在文件中替换...](finding-and-replacing-text-in-project.html#replace_search_string_in_project)  |  `Ctrl+Shift+R`  |
|  [文本光标处单词的下一个出现位置](null)  |  `Ctrl+F3`  |
|  [转到文件...](null)  |  `Ctrl+Shift+N`  |
|  [文件结构](viewing-structure-of-a-source-file.html#structure-popup)  |  `Ctrl+F12`  |
|  [转到符号……](null)  |  `Ctrl+Alt+Shift+N`  |
|  [查找操作...](searching-everywhere.html#search_actions)  |  `Ctrl+Shift+A`  |

## 从符号导航

|  |  |
| --- | --- |
|  [查找用法](find-highlight-usages.html#find-usages)  |  `Alt+F7`  |
|  [转到声明或用法](null)  |  `Ctrl+B`  |
|  [转到类型声明](null)  |  `Ctrl+Shift+B`  |
|  [显示用法](null)  |  `Ctrl+Alt+F7`  |
|  [转到超级方法](navigating-through-the-source-code.html#go_to_implementation)  |  `Ctrl+U`  |
|  [转到实现](navigating-through-the-source-code.html#go_to_implementation)  |  `Ctrl+Alt+B`  |
|  [转到测试](create-tests.html#test-code-navigation)  |  `Ctrl+Shift+T`  |
|  [在文件中高亮用法](find-highlight-usages.html#usages_in_file)  |  `Ctrl+Shift+F7`  |

## 代码分析

|  |  |
| --- | --- |
|  [显示意图操作](intention-actions.html#apply-intention-actions)  |  `Alt+Enter`  |
|  [错误描述](null)  |  `Ctrl+F1`  |
|  [下一个高亮错误](navigating-through-the-source-code.html#navigate-errors-warnings)  |  `F2`  |
|  [上一个高亮错误](navigating-through-the-source-code.html#navigate-errors-warnings)  |  `Shift+F2`  |
|  [按名称运行检查...](running-inspections.html#run-inspections-manually)  |  `Ctrl+Alt+Shift+I`  |
|  [显示问题窗口](null)  |  `Alt+6`  |

## 运行和调试

|  |  |
| --- | --- |
|  [运行任意项](running-applications.html)  |  按两次 `Ctrl`  |
|  [运行上下文配置](null)  |  `Shift+F10`  |
|  [运行...](null)  |  `Alt+Shift+F10`  |
|  [调试上下文配置](null)  |  `Shift+F9`  |
|  [调试...](null)  |  `Alt+Shift+F9`  |
|  [附加到进程...](null)  |  `Ctrl+Alt+F5`  |
|  [停止](null)  |  `Ctrl+F2`  |
|  [恢复程序](null)  |  `F9`  |
|  [停止后台进程...](null)  |  `Ctrl+Shift+F2`  |
|  [单步跳过](null)  |  `F8`  |
|  [强制步过](null)  |  `Alt+Shift+F8`  |
|  [单步跳入](null)  |  `F7`  |
|  [智能步入](null)  |  `Shift+F7`  |
|  [强制步入](null)  |  `Alt+Shift+F7`  |
|  [退出](null)  |  `Shift+F8`  |
|  [运行到光标处](null)  |  `Alt+F9`  |
|  [强制运行到光标](null)  |  `Ctrl+Alt+F9`  |
|  [显示执行点](null)  |  `Alt+F10`  |
|  [求值表达式……](null)  |  `Alt+F8`  |
|  [快速求值表达式](null)  |  `Ctrl+Alt+F8`  |
|  [切换行断点](null)  |  `Ctrl+F8`  |
|  [切换临时行断点](null)  |  `Ctrl+Alt+Shift+F8`  |
|  [查看断点...](null)  |  `Ctrl+Shift+F8`  |
|  [编辑断点](null)  |  `Ctrl+Shift+F8`  |
|  [显示运行窗口](null)  |  `Alt+4`  |
|  [显示调试窗口](null)  |  `Alt+5`  |
|  [显示 服務 窗口](null)  |  `Alt+8`  |

## 重构

|  |  |
| --- | --- |
|  [对此重构……](null)  |  `Ctrl+Alt+Shift+T`  |
|  [重命名...](null)  |  `Shift+F6`  |
|  [更改签名...](null)  |  `Ctrl+F6`  |
|  [内联...](null)  |  `Ctrl+Alt+N`  |
|  [移动...](null)  |  `F6`  |
|  [提取方法...](null)  |  `Ctrl+Alt+M`  |
|  [引入字段...](null)  |  `Ctrl+Alt+F`  |
|  [引入参数...](null)  |  `Ctrl+Alt+P`  |
|  [引入变量...](null)  |  `Ctrl+Alt+V`  |
|  [安全删除...](null)  |  `Alt+Delete`  |

## 全局 VCS 操作

|  |  |
| --- | --- |
|  [VCS 操作弹出窗口……](null)  |  `Alt+``  |
|  [提交...](null)  |  `Ctrl+K`  |
|  [更新项目](null)  |  `Ctrl+T`  |
|  [回滚](null)  |  `Ctrl+Alt+Z`  |
|  [推送...](null)  |  `Ctrl+Shift+K`  |
|  [下一个更改](null)  |  `Ctrl+Alt+Shift+Down`  |
|  [上次更改](null)  |  `Ctrl+Alt+Shift+Up`  |
|  [显示版本控制窗口](null)  |  `Alt+9`  |
|  [显示提交窗口](null)  |  `Alt+0`  |

## 差异查看器

|  |  |
| --- | --- |
|  [显示差异](null)  |  `Ctrl+D`  |
|  [比较文件](null)  |  `Ctrl+D`  |
|  [下一个不同](null)  |  `F7`  |
|  [上一个差异](null)  |  `Shift+F7`  |
|  [接受左侧](null)  |  `Ctrl+Alt+R`  |
|  [接受右侧](null)  |  `Ctrl+Alt+A`  |
|  [选择相对差异窗格](null)  |  `Ctrl+Shift+Tab`  |
|  [显示差异设置弹出窗口...](null)  |  `Ctrl+Shift+D`  |

## 工具窗口

|  |  |
| --- | --- |
|  [隐藏活动工具窗口](null)  |  `Shift+Escape`  |
|  [隐藏所有工具窗口](null)  |  `Ctrl+Shift+F12`  |
|  [跳转到最后一个工具窗口](null)  |  `F12`  |
|  [向左延展](null)  |  `Ctrl+Alt+Shift+Left`  |
|  [向右拉伸](null)  |  `Ctrl+Alt+Shift+Right`  |
|  [拉伸到顶部](null)  |  `Ctrl+Alt+Shift+Up`  |
|  [拉伸到底部](null)  |  `Ctrl+Alt+Shift+Down`  |
|  [显示 项目 窗口](null)  |  `Alt+1`  |
|  [显示书签窗口](null)  |  `Alt+2`  |
|  [显示查找窗口](null)  |  `Alt+3`  |
|  [显示运行窗口](null)  |  `Alt+4`  |
|  [显示调试窗口](null)  |  `Alt+5`  |
|  [显示问题窗口](null)  |  `Alt+6`  |
|  [显示结构窗口](viewing-structure-of-a-source-file.html#structure-tool-window)  |  `Alt+7`  |
|  [显示 服務 窗口](null)  |  `Alt+8`  |
|  [显示版本控制窗口](null)  |  `Alt+9`  |
|  [显示提交窗口](null)  |  `Alt+0`  |
|  [显示终端窗口](null)  |  `Alt+F12`  |

