← All extensions

Comment Blocks

v1.0.4 · by Rami Shalhoub · added 3 November 2026

snippets to add comment blocks

Snippets

How to install

With Forge Super installed, the button above opens the app on this extension, where you press Install. Nothing is installed until you do.

You can also open the Extensions panel in the app and search for Comment Blocks. The extension's id is comment-block-snippets.

Don't have Forge Super yet? Download it here.

README

From the extension's repository, written by its authors and not by Mentenaz. See the source.

Comment Blocks

This extension adds templates of comment snippets to Zed

[!TIP] For the best experience, I suggest installing the zed-comment extension

Templates

There are 8 different templates, each with 5 sizes:

  • small sm
  • medium md
  • large lg
  • Xlarge xl
  • XXlarge xxl
Separator — sep
//====================Comment====================
Header — head
//====================================================
//===                 Comment                      ===
//====================================================
Comment Block — blk
//----------------------------------------------------
//                    Comment
/* body
*/
//----------------------------------------------------
TODO Block — todo
//----------------------------------------------------
//TODO                Comment
/*? body
*/
//----------------------------------------------------
INFO Block — info
//----------------------------------------------------
//INFO                Comment
/* * body
*/
//----------------------------------------------------
WARNING Block — warn
//----------------------------------------------------
//WARN                Comment
/* # body
*/
//----------------------------------------------------
BUG Block — bug
//----------------------------------------------------
//BUG                 Comment
/* ! body
*/
//----------------------------------------------------
FIXME Block — fix
//----------------------------------------------------
//FIXME               Comment
/* ! body
*/
//----------------------------------------------------

Supported Languages

Slash Style //Hash Style #Dash Style --Others
CPerlHaskellHTML
C++RubyLuaCSS
C#PythonSQLProlog
JavaR
KotlinShellscript
GoYAML
JavaScript / JSX
TypeScript / TSX
Swift
Rust
PHP
JSONC

How to Use

After installing the extension, type com followed by a template name then the template size.

Pattern: com-{template}-{size}

Examples: com-sep-xxl, com-fix-md, com-todo-lg

Credit

This extension is inspired by the VSCode extensions Comment-Header-Generator and comment-headers.