1
0
mirror of synced 2025-12-22 11:26:57 -05:00

Adds documentation for cmd-e shortcut (#19889)

This commit is contained in:
Emma Makinson
2021-06-18 08:16:35 +01:00
committed by GitHub
parent 5babd75b0a
commit e9048d696a
2 changed files with 4 additions and 3 deletions

View File

@@ -76,7 +76,8 @@ For more keyboard shortcuts, see the [CodeMirror documentation](https://codemirr
| Keyboard shortcut | Description | Keyboard shortcut | Description
|-----------|------------ |-----------|------------
| <kbd>control b</kbd> or <kbd>command b</kbd> | Inserts Markdown formatting for bolding text | <kbd>control b</kbd> or <kbd>command b</kbd> | Inserts Markdown formatting for bolding text
| <kbd>control i</kbd> or <kbd>command i</kbd> | Inserts Markdown formatting for italicizing text | <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 "enterprise-server@3.1" %}
| <kbd>control e</kbd> or <kbd>command e</kbd> | Inserts Markdown formatting for code or a command within a line{% endif %}
| <kbd>control k</kbd> or <kbd>command k</kbd> | Inserts Markdown formatting for creating a link | <kbd>control k</kbd> or <kbd>command k</kbd> | Inserts Markdown formatting for creating a link
| <kbd>control shift p</kbd> or <kbd>command shift p</kbd>| Toggles between the **Write** and **Preview** comment tabs | <kbd>control shift p</kbd> or <kbd>command shift p</kbd>| Toggles between the **Write** and **Preview** comment tabs
| <kbd>control enter</kbd> | Submits a comment | <kbd>control enter</kbd> | Submits a comment

View File

@@ -53,7 +53,7 @@ In the words of Abraham Lincoln:
## Quoting code ## Quoting code
You can call out code or a command within a sentence with single backticks. The text within the backticks will not be formatted. 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 "enterprise-server@3.1" %} 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 %}
```markdown ```markdown
Use `git status` to list all new or modified files that haven't yet been committed. 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
## Links ## Links
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. 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 "enterprise-server@3.1" %}You can also use the keyboard shortcut `command + k` to create a link.{% endif %}
`This site was built using [GitHub Pages](https://pages.github.com/).` `This site was built using [GitHub Pages](https://pages.github.com/).`