disable-markdown-formatting-shortcuts
Purpose
This document explains how to disable or remove specific Markdown formatting keyboard shortcuts in WebStorm, particularly the Ctrl+B (Cmd+B on Mac) shortcut that automatically inserts **** for bold formatting when working in Markdown files.
Problem
When editing Markdown files in WebStorm, pressing Ctrl+B (or Cmd+B on Mac) automatically inserts bold formatting markers (****). This can conflict with:
- The default “Go to Declaration” shortcut (Ctrl+B/Cmd+B) in code files
- User preference to manually type Markdown syntax
- Custom workflows that use this shortcut for other purposes
Solution
Step-by-Step Instructions
-
Open Settings
- Windows/Linux: Press
Ctrl+Alt+S - Mac: Press
Cmd+,
- Windows/Linux: Press
-
Navigate to Keymap Settings
- In the Settings dialog, select Keymap from the left sidebar
-
Find the Markdown Bold Action
- Use the search field at the top of the Keymap page
- Type “Bold” or “Markdown” to filter actions
- Look for the action named something like “Toggle Bold” or “Markdown: Bold” (usually under Plugins → Markdown)
-
Remove the Shortcut
- Right-click on the action
- Select Remove Ctrl+B (or Cmd+B on Mac) from the context menu
- Alternatively, select Reset Shortcuts to restore all shortcuts to defaults
-
Apply Changes
- Click OK or Apply to save your changes
Important Notes
-
Predefined Keymaps Are Immutable: You cannot change predefined keymaps directly. When you modify any shortcut, WebStorm automatically creates a copy of that keymap which you can configure.
-
Find Other Markdown Shortcuts: Some Markdown shortcuts can be unintuitive. It’s recommended to review all Markdown-related shortcuts in the Keymap settings and adjust them to your preferences.
-
Verify the Plugin is Enabled: If you don’t see Markdown shortcuts in the Keymap settings:
- Press
Ctrl+Alt+Sto open Settings - Navigate to Plugins
- Open the Installed tab
- Find the Markdown plugin
- Ensure the checkbox next to the plugin name is selected
- Press
Alternative: Reassign Instead of Remove
If you want to keep the bold formatting functionality but use a different shortcut:
- Follow steps 1-3 above
- Right-click the action and select Add Keyboard Shortcut
- Press your desired key combination in the dialog
- Remove the old Ctrl+B binding if it still exists
Common Conflicts
The Ctrl+B shortcut commonly conflicts with:
- Go to Declaration - The default JetBrains IDE shortcut for navigating to code definitions
- System shortcuts - Some operating systems use this for bold in other applications
- Third-party software - Browser extensions or other tools may capture this shortcut
Related Settings
Find Shortcut Conflicts
To identify what action currently uses a specific shortcut:
- In Keymap settings, click the magnifying glass icon
- Press the key combination you want to check
- WebStorm will show all actions bound to that shortcut
Disable All Markdown Formatting Shortcuts
To remove all Markdown formatting shortcuts at once:
- Search for “Markdown” in the Keymap settings
- Expand the Plugins → Markdown section
- Right-click each formatting action and select “Remove” for unwanted shortcuts