Home > Back-end >  Prevent ctrl-B from setting bold font while working with md files with the Markdown All in One exten
Prevent ctrl-B from setting bold font while working with md files with the Markdown All in One exten

Time:02-03

In VS Code, when you are working with a markdown file with the "Markdown All in One" extension active, ctrl-B sets the selected text to bold by surrounding it with **

The problem is that I use the ctrl-B keyboard shortcut all the time to show/hide the side bar.

Is there any way to disable that emboldening shortcut (or define an alternative one) when working with Markdown files, and to use it for hiding the side bar?

edit: the problem was that I had the 'Markdown All in One' installed

CodePudding user response:

I don't think this can currently be done without uninstalling / deactivating your "Markdown All in One" extension. If you look at the list of keybinding actions it offers (see those that start with markdown.extension.editor.toggle), there are ones for toggling code spans, blocks, math, lists, but none for toggling bold and italics, which I find strange. No dice either searching for suggestions in the keybindings.json with "markdown.extensionbold".

So either I'm missing something, or you need to make a feature-request on their GitHub. If you do, post a link in the comments here for posterity.

As a last resort to get a fix right now, you could just remap your toggle-side-bar keybinding to something else.

  • Related