Bold Text Shortcut Key: Cross-Platform Quick Guide for Editors
Explore the bold text shortcut key across Windows and macOS with practical, cross-app guidance, examples, and safe customization tips from Shortcuts Lib to speed up editing workflows.
What is a bold text shortcut key?
A bold text shortcut key is a keyboard combination that toggles bold formatting for the current text selection in compatible apps. The typical mapping is Ctrl+B on Windows and Cmd+B on macOS. In some editors, the shortcut is exposed via menus or a toolbar instead of a direct keyboard command, and certain apps may use an alternate key (e.g., Ctrl+Shift+B) to toggle bold. For developers and power users, the concept extends beyond word processors to editors, email clients, note apps, and even code editors when bold styling is supported in Markdown or rich-text modes.
// Simple toggle for a contenteditable element
function toggleBold() {
document.execCommand('bold'); // Note: execCommand is deprecated in modern browsers but still widely supported in editors
}<!-- Basic usage example: clicking a button triggers bold on the selected text -->
<button onclick="document.execCommand('bold')">Bold</button># Convert Markdown bold to HTML as a preprocessing step
import re
def md_bold_to_html(md_text: str) -> str:
return re.sub(r"\*\*(.*?)\*\*", r"<strong>\1</strong>", md_text)Variations abound: some apps map the same key to different actions, while others use a dedicated toolbar button. Understanding the default mappings in your primary editor is essential to avoid conflicts with other custom shortcuts.
bold benefits in workflows:
