Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>BoldifyNew to Visual Studio Code? Get it now.
Boldify

Boldify

TinyTanic

|
4 installs
| (0) | Free
Apply bold formatting to selected text based on file type
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Boldify

Apply bold formatting to selected text based on file type. This VS Code extension automatically detects your file type and wraps selected text with the appropriate bold syntax.

Features

  • Automatic file type detection - Works with Markdown, HTML, LaTeX, reStructuredText, TypeScript, and JavaScript
  • Smart formatting - Applies the correct bold syntax for each file type
  • Quick keyboard shortcut - Use Ctrl+B Ctrl+B (or Cmd+B Cmd+B on Mac) to boldify selected text
  • Multi-line support - Works seamlessly with multi-line selections
  • Graceful error handling - Clear feedback when text isn't selected or file type isn't supported

Supported File Types

File Type Bold Syntax Example
Markdown **text** **bold text**
HTML <b>text</b> <b>bold text</b>
LaTeX \textbf{text} \textbf{bold text}
reStructuredText **text** **bold text**
TypeScript / JavaScript <b>text</b> <b>bold text</b>
TSX / JSX <b>text</b> <b>bold text</b>

Usage

Using the Keyboard Shortcut

  1. Select the text you want to make bold
  2. Press Ctrl+B Ctrl+B (Windows/Linux) or Cmd+B Cmd+B (Mac)
  3. The selected text will be wrapped with the appropriate bold syntax

Using the Command Palette

  1. Select the text you want to make bold
  2. Open the Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  3. Type "Boldify Selected Text" and press Enter
  4. The selected text will be wrapped with the appropriate bold syntax

Examples

Markdown

Before: This is regular text
Select: regular
After: This is **regular** text

HTML

Before:
<p>This is regular text</p>
Select: regular After:
<p>This is <b>regular</b> text</p>

LaTeX

Before: This is regular text
Select: regular
After: This is \textbf{regular} text

reStructuredText

Before: This is regular text
Select: regular
After: This is **regular** text

TypeScript / JavaScript

Before: const message = "This is regular text";
Select: regular;
After: const message = "This is <b>regular</b> text";

Configuration

You can customize the bold formatting for each language by adding custom format templates in your VS Code settings.

Custom Format Templates

  1. Open VS Code Settings (Ctrl+, or Cmd+,)
  2. Search for "Boldify"
  3. Click "Edit in settings.json" under "Custom Formats"
  4. Add your custom templates using {text} as a placeholder

Example configuration in settings.json:

{
  "boldify.customFormats": {
    "markdown": "**{text}**",
    "html": "<strong>{text}</strong>",
    "typescript": "<b>{text}</b>",
    "javascript": "<b>{text}</b>",
    "python": "**{text}**",
    "java": "/* BOLD: {text} */"
  }
}

Custom formats take precedence over default formatters, allowing you to:

  • Override default formatting for supported languages
  • Add support for additional languages not included by default
  • Use any custom syntax you prefer

Requirements

  • Visual Studio Code version 1.80.0 or higher

Known Limitations

  • If text already contains bold syntax, additional formatting will be applied (nested bold)
  • Only works with the supported file types listed above
  • Requires text to be selected before invoking the command

Feedback and Contributions

Found a bug or have a feature request? Please open an issue on the GitHub repository.

License

This extension is provided as-is without warranty.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft