Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Named CodeBlocksNew to Visual Studio Code? Get it now.
Markdown Named CodeBlocks

Markdown Named CodeBlocks

tsutsu3

|
3,989 installs
| (1) | Free
Adds named code blocks support to the build-in markdown preview
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

markdown-named-code-blocks

This extension makes adding a name to the codeblock possible.

The current version supports VSCode's built-in markdown preview.

Build Status

sample

Usage

Add the filename after the language name followed by a colon in the first line of codeblock.

```js:hello.js
console.log("Hello World!);
```

Default style preview:

default style

Github style preview:

github style

License

Distributed under the MIT License. See LICENSE for more information.

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