• 键盘快捷键


    键盘快捷键

    几乎 GitHub 上的每一页都有键盘快捷键,可以更快地执行操作。

    本文内容

    关于键盘快捷键

    在 GitHub 中输入 ? 可弹出一个对话框,列出可用于该页面的键盘快捷键。 您可以使用这些键盘快捷键对站点执行操作,而无需使用鼠标导航。

    下面是一些可用键盘快捷键的列表。

    站点快捷键

    键盘快捷键描述
    s 或 / 聚焦于搜索栏。 更多信息请参阅“关于在 GitHub 上搜索”。
    g n 转到您的通知。 更多信息请参阅“关于通知”。
    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”。

    源代码编辑

    键盘快捷键描述
    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 [ 已保存回复编号 ] 打开已保存回复菜单,然后使用已保存回复自动填写评论字段。 更多信息请参阅“关于已保存回复”。
    control g 或 command g 插入建议。 更多信息请参阅“审查拉取请求中提议的更改”。
    r 在您的回复中引用所选的文本。 更多信息请参阅“基本撰写和格式语法”。

    议题和拉取请求列表

    键盘快捷键描述
    c 创建议题
    control / 或 command / 将光标聚焦于议题或拉取请求搜索栏。 更多信息请参阅“使用搜索过滤议题和拉取请求”。
    u 按作者过滤
    l 按标签过滤或编辑标签。 更多信息请参阅“按标签过滤议题和拉取请求”。
    alt 并单击 按标签过滤时,排除标签。 更多信息请参阅“按标签过滤议题和拉取请求”。
    m 按里程碑过滤或编辑里程碑。 更多信息请参阅“按里程碑过滤议题和拉取请求”。
    a 按受理人过滤或编辑受理人。 更多信息请参阅“按受理人过滤议题和拉取请求”。
    o 或 enter 打开议题

    议题和拉取请求

    键盘快捷键描述
    q 请求审查者。 更多信息请参阅“申请拉取请求审查”。
    m 设置里程碑。 更多信息请参阅“将里程碑与议题及拉取请求关联”。
    l 应用标签。 更多信息请参阅“应用标签到议题和拉取请求”。
    a 设置受理人。 更多信息请参阅“分配议题和拉取请求到其他 GitHub 用户”。
    cmd + shift + p or control + shift + p Toggles between the Write and Preview tabs

    拉取请求中的更改

    键盘快捷键描述
    c 在拉取请求中打开提交列表
    t 在拉取请求中打开已更改文件列表
    j 将所选内容在列表中向下移动
    k 将所选内容在列表中向上移动
    cmd + shift + enter 添加一条有关拉取请求差异的评论
    alt 并单击 Toggle between collapsing and expanding all outdated review comments in a pull request by holding down alt and clicking Show outdated or Hide outdated .
    Click, then shift and click Comment on multiple lines of a pull request by clicking a line number, holding shift , then clicking another line number. For more information, see "Commenting on a pull request."

    项目板

    移动列

    键盘快捷键描述
    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 将卡片移动到最右侧列的底部

    Previewing a card

    键盘快捷键描述
    esc Close the card preview pane

    GitHub 操作

    键盘快捷键描述
    command space or control space In the workflow editor, get suggestions for your workflow file.

    通知

    通知

    键盘快捷键描述
    e Mark as done
    shift u Mark as unread
    shift i 标记为已读
    shift m Unsubscribe

    Legacy notifications

    键盘快捷键描述
    e 、 I 或 y 标记为已读
    shift m 静音线程

    网络图

    键盘快捷键描述
     或 h 向左滚动
     或 l 向右滚动
     或 k 向上滚动
     或 j 向下滚动
    shift ← 或 shift h 一直向左滚动
    shift → 或 shift l 一直向右滚动
    shift ↑ 或 shift k 一直向上滚动
    shift ↓ 或 shift j 一直向下滚动
  • 相关阅读:
    linux 内存映射-ioremap和mmap函数
    vue 模板语法-插值的操作(12-22)
    chrome浏览器json插件
    vue初识(1-11)2020-10-27
    后盾人:JS课程第一章(11-18)2020-10-25
    博客园美化
    chrome 设置自动刷新网页
    二叉树的层次遍历
    poj 2905 双向队列(待补充)
    poj 2159 D
  • 原文地址:https://www.cnblogs.com/penphy/p/12599578.html
Copyright © 2020-2023  润新知