Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Comment StylerNew to Visual Studio Code? Get it now.
Comment Styler

Comment Styler

KremboLabs

|
14,575 installs
| (9) | Free
Add style to comments in your source code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Comment Styler

This Visual Studio Code extension allows you to style your code comments as if you were using a word processor.

Write comments in bold and italic letters or use various font sizes and colors.

Comment Styler supports any programming language (Javascript, Python, C#, C++,...) or even plain text files.

You can now write this comment in Javascript:

Styled JS comment

Instead of this boring comment:

Styled JS comment

Or, this Python comment:

Styled comment

Instead of this...

Regular comment

Installing

You can install the latest version of the extension via the Visual Studio Marketplace here.

Features

The extension allows you to edit the following styles:

  • Bold
  • Italic
  • Underline
  • Outline
  • Superscript
  • Font size
  • Font color

To use these tools, first open the tool "drawer":

Open tools

Then, select the requested tool:

Open tools

Example - All styles together...

All styles

Demo

Demo

Compatibility with other editors

You may ask, "what would happen if I share the file with my friend who does not use this extension?". Moreover, perhaps you use VSCode, but your colleague use a completely different IDE...

To address this issue, the extension saves the styling as standard Unicode characters - as much as possible. Since Unicode does not support font size or color this type of information is encoded with invisible characters. This means that 𝗯𝗼𝗹𝗱, 𝘪𝘵𝘢𝘭𝘪𝘤𝘴, u͟n͟d͟e͟r͟l͟i͟n͟e, 𝕠𝕦𝕥𝕝𝕚𝕟𝕖 and other styles are viewable in other IDEs, while color and font size will be ignored and will be displayed as plain text.

Important: The actual result may differ depending on the font type used by the editor. Also, even if an editor displays the text as expected this behavior may break in future version of the editor - we have no control over that!

Examples of how other IDEs display a file saved with the extension

VSCode without the extension:

VSCode without extension

PyCharm (ver 2019.3):

PyCharm demo

Visual Studio 2019:

Visual Studio demo

Configuration

{
  "commentStyler.useDrawer": true,  // Hide style options until drawer button is clicked
  "commentStyler.serifFont": false, // Should Bold and Italics use serif font (letters with small extra stroke)
}

Command

  • Stylize Document: Perform styling over the entire document. If you notice incorrect coloring, running this command may fix the problem.

Known Issues

► In PyCharm 2019, the hidden codes (for color/font size) may become visible. They can be removed by clicking "Enable font ligatures" under Settings->Editor->Font

► Notepad++ may not display underscores correctly, to fix that please change the default font from Settings->Style Configurator->Default Style->Font Name and change to a suitable font, for example "Courier" or "System".

► Recent versions of PyCharm (2021?) started displaying codes instead of invisible Unicode characters.

► If you encounter slowness while typing try disabling other extensions, especially ones that perform styling while typing.

► Spell checkers may not identify unicode characters as regular letters. In order to avoid marking all styled text as typo you can instruct the spell checker to ignore these characters. For example, for Code Spell Checker, add the following setting:

"cSpell.ignoreRegExpList": [
  "/[𝕒-𝕫𝔸-𝕐ℂℍℕℙℚℝℤ𝟘-𝟡𝙖-𝙯𝘼-𝙕𝗮-𝘇𝗔-𝗭𝘢-𝘻𝘈-𝘡͟ᵃ-ᶻᴬ-ᵂ𝐚-𝐳𝐀-𝐙𝑎-𝑧𝐴-𝑍𝒂-𝒛𝑨-𝒁̶]+/ug"
]
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft