Skip to content

Commit e9048d6

Browse files
authored
Adds documentation for cmd-e shortcut (github#19889)
1 parent 5babd75 commit e9048d6

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

content/github/getting-started-with-github/using-github/keyboard-shortcuts.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ For more keyboard shortcuts, see the [CodeMirror documentation](https://codemirr
7676
| Keyboard shortcut | Description
7777
|-----------|------------
7878
| <kbd>control b</kbd> or <kbd>command b</kbd> | Inserts Markdown formatting for bolding text
79-
| <kbd>control i</kbd> or <kbd>command i</kbd> | Inserts Markdown formatting for italicizing text
79+
| <kbd>control i</kbd> or <kbd>command i</kbd> | Inserts Markdown formatting for italicizing text{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "[email protected]" %}
80+
| <kbd>control e</kbd> or <kbd>command e</kbd> | Inserts Markdown formatting for code or a command within a line{% endif %}
8081
| <kbd>control k</kbd> or <kbd>command k</kbd> | Inserts Markdown formatting for creating a link
8182
| <kbd>control shift p</kbd> or <kbd>command shift p</kbd>| Toggles between the **Write** and **Preview** comment tabs
8283
| <kbd>control enter</kbd> | Submits a comment

content/github/writing-on-github/getting-started-with-writing-and-formatting-on-github/basic-writing-and-formatting-syntax.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ In the words of Abraham Lincoln:
5353

5454
## Quoting code
5555

56-
You can call out code or a command within a sentence with single backticks. The text within the backticks will not be formatted.
56+
You can call out code or a command within a sentence with single backticks. The text within the backticks will not be formatted.{% if currentVersion == "free-pro-team@latest" or currentVersion == "github-ae@next" or currentVersion ver_gt "[email protected]" %} You can also press the `command` or `Ctrl` + `e` keyboard shortcut to insert the backticks for a code block within a line of Markdown.{% endif %}
5757

5858
```markdown
5959
Use `git status` to list all new or modified files that haven't yet been committed.
@@ -78,7 +78,7 @@ For more information, see "[Creating and highlighting code blocks](/articles/cre
7878

7979
## Links
8080

81-
You can create an inline link by wrapping link text in brackets `[ ]`, and then wrapping the URL in parentheses `( )`. You can also use the keyboard shortcut `command + k` to create a link.
81+
You can create an inline link by wrapping link text in brackets `[ ]`, and then wrapping the URL in parentheses `( )`. {% if currentVersion == "free-pro-team@latest" or if currentVersion == "github-ae@next" or if currentVersion ver_gt "[email protected]" %}You can also use the keyboard shortcut `command + k` to create a link.{% endif %}
8282

8383
`This site was built using [GitHub Pages](https://pages.github.com/).`
8484

0 commit comments

Comments
 (0)