键盘快捷键
      
      
        几乎 GitHub Enterprise 上的每一页都有键盘快捷键,可以更快地执行操作。
 
    
    
      
      
在 GitHub Enterprise 中输入 ? 可弹出一个对话框,列出可用于该页面的键盘快捷键。 您可以使用这些键盘快捷键对站点执行操作,而无需使用鼠标导航。
下面是一些可用键盘快捷键的列表。
| 键盘快捷键 | 描述 | 
|---|
| s 或 / | 聚焦于搜索栏。 更多信息请参阅“关于在 GitHub 上搜索”。 | 
| g n | 转到您的通知。 For more information, see "About notifications." | 
| esc | When focused on a user, issue, or pull request hovercard, closes the hovercard and refocuses on the element the hovercard is in | 
| 键盘快捷键 | Description | 
|---|
| g c | 转到 Code(代码)选项卡 | 
| g i | 转到 Issues(议题)选项卡。 更多信息请参阅“关于议题”。 | 
| g p | 转到 Pull requests(拉取请求)选项卡。 更多信息请参阅“关于拉取请求”。 | 
| g b | 转到 Projects(项目)选项卡。 更多信息请参阅“关于项目板”。 | 
| g w | 转到 Wiki 选项卡。 更多信息请参阅“关于 wikis”。 | 
| 键盘快捷键 | 描述 | 
|---|
| e | Open source code file in the Edit file tab | 
| control f 或 command f | 开始在文件编辑器中搜索 | 
| control g 或 command g | 查找下一个 | 
| shift control g 或 shift command g | 查找上一个 | 
| shift control f 或 command option f | 替换 | 
| shift control r 或 shift command option f | 全部替换 | 
| alt g | 跳至行 | 
| control z 或 command z | 撤消 | 
| control y 或 command y | 重做 | 
| cmd + shift + p | Toggles between the Edit file and Preview changes tabs | 
有关更多键盘快捷键,请参阅 CodeMirror 文档。
| 键盘快捷键 | 描述 | 
|---|
| t | 激活文件查找器 | 
| l | 跳至代码中的某一行 | 
| w | 切换到新分支或标记 | 
| y | 将 URL 展开为其规范形式。 更多信息请参阅“获取文件的永久链接”。 | 
| i | 显示或隐藏有关差异的评论。 更多信息请参阅“评论拉取请求的差异”。 | 
| b | 打开追溯视图。 更多信息请参阅“跟踪文件中的更改”。 | 
| 键盘快捷键 | 描述 | 
|---|
| control b 或 command b | 插入 Markdown 格式用于粗体文本 | 
| control i 或 command i | 插入 Markdown 格式用于斜体文本 | 
| control k 或 command k | 插入 Markdown 格式用于创建链接 | 
| control shift p 或 command shift p | 在 Write(撰写)和 Preview(预览)评论选项卡之间切换 | 
| control enter | 提交评论 | 
| control .,然后 control [已保存回复编号] | 打开已保存回复菜单,然后使用已保存回复自动填写评论字段。 更多信息请参阅“关于已保存回复”。 | 
| r | 在您的回复中引用所选的文本。 更多信息请参阅“基本撰写和格式语法”。 | 
| 键盘快捷键 | 描述 | 
|---|
| c | 在拉取请求中打开提交列表 | 
| t | 在拉取请求中打开已更改文件列表 | 
| j | 将所选内容在列表中向下移动 | 
| k | 将所选内容在列表中向上移动 | 
| cmd + shift + enter | 添加一条有关拉取请求差异的评论 | 
| alt 并单击 | Toggle between collapsing and expanding all outdated review comments in a pull request by holding down altand clicking Show outdated or Hide outdated. | 
| 键盘快捷键 | 描述 | 
|---|
| enter 或 space | 开始移动聚焦的列 | 
| escape | 取消正在进行的移动 | 
| enter | 完成正在进行的移动 | 
| ← 或 h | 向左移动列 | 
| command ←、command h、control ← 或 control h | 将列移动到最左侧的位置 | 
| → 或 l | 向右移动列 | 
| command →、command l、control → 或 control l | 将列移动到最右侧的位置 | 
| 键盘快捷键 | 描述 | 
|---|
| enter 或 space | 开始移动聚焦的卡片 | 
| escape | 取消正在进行的移动 | 
| enter | 完成正在进行的移动 | 
| ↓ 或 j | 向下移动卡片 | 
| command ↓、command j、control ↓ 或 control j | 将卡片移动到该列的底部 | 
| ↑ 或 k | 向上移动卡片 | 
| command ↑、command k、control ↑ 或 control k | 将卡片移动到该列的顶部 | 
| ← 或 h | 将卡片移动到左侧列的底部 | 
| shift ← 或 shift h | 将卡片移动到左侧列的顶部 | 
| command ←、command h、control ← 或 control h | 将卡片移动到最左侧列的底部 | 
| command shift ←、command shift h、control shift ← 或 control shift h | 将卡片移动到最左侧列的顶部 | 
| → | 将卡片移动到右侧列的底部 | 
| shift → 或 shift l | 将卡片移动到右侧列的顶部 | 
| command →、command l、control → 或 control l | 将卡片移动到最右侧列的底部 | 
| command shift →、command shift l、control shift → 或 control shift l | 将卡片移动到最右侧列的底部 | 
| 键盘快捷键 | 描述 | 
|---|
| esc | Close the card preview pane | 
| 键盘快捷键 | 描述 | 
|---|
| e、I 或 y | 标记为已读 | 
| shift m | 静音线程 | 
| 键盘快捷键 | 描述 | 
|---|
| ← 或 h | 向左滚动 | 
| → 或 l | 向右滚动 | 
| ↑ 或 k | 向上滚动 | 
| ↓ 或 j | 向下滚动 | 
| shift ← 或 shift h | 一直向左滚动 | 
| shift → 或 shift l | 一直向右滚动 | 
| shift ↑ 或 shift k | 一直向上滚动 | 
| shift ↓ 或 shift j | 一直向下滚动 |