Skip to content

Instantly share code, notes, and snippets.

@nonkronk
Last active March 31, 2023 20:10
Show Gist options
  • Save nonkronk/2400d7d0a28dc38b02414266709603c1 to your computer and use it in GitHub Desktop.
Save nonkronk/2400d7d0a28dc38b02414266709603c1 to your computer and use it in GitHub Desktop.
Enable Bold Markdown shortcut on VSCode

Enable Bold Markdown Shortcut in VSCode

Press Cmd+Shift+P to open the command palette and type Open Keyboard Shortcut to open the keybindings file. Add the following code to the file:

    {
        "key": "cmd+b",
        "scope": "markdown",
        "command": "editor.action.insertSnippet",
        "when": "editorTextFocus && editorLangId == 'markdown'",
        "args": {
            "snippet": "**$TM_SELECTED_TEXT**$0"
        }
    },

Press Cmd+B to bold the selected text.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment