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.
Thanks! For Linux I got this to work by changing the
key
toctrl+b
which should also work for windows.