Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>Code Block FormatterNew to Visual Studio Code? Get it now.
Code Block Formatter

Code Block Formatter

ame-neko

|
480 installs
| (0) | Free
Format code block of markdown.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Block Formatter

This extension formats contents of code block of markdown file.
Please specify language language identifier after triple backticks to format the code as that language.

Features

  • Format code block

    • Copy and format the contents of the code block into a temporary document, then copy the result to the original file.

  • Minify code block

    • Currently only JSON code block is supported

Extension Settings

Settings name Description Default
markdown-code-block-formatter.defaultLanguage Deefault language of code block. This language is used when language of code block is filled. N/A
markdown-code-block-formatter.languageNameMapping Mapping of language name of code block to language id used to format code block. For example: { "js": "javascript" } N/A
markdown-code-block-formatter.waitLanguageActivatedTimeoutMs Timeout milliseconds for waiting for initialization of language feature to complete. 1000
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft