Skip to content
Get Plugin >

The plugin provides essential editor features that make working with Circom code more efficient.

The plugin automatically highlights matching brackets when your cursor is positioned on one:

  • Parentheses ()
  • Square brackets []
  • Curly braces {}

This helps you quickly identify the scope of blocks and ensure proper nesting in complex templates.

You can jump between matching brackets using:

ActionmacOSWindows/Linux
Jump to matching bracketCmd+] / Cmd+[Ctrl+] / Ctrl+[

Collapse and expand code sections to focus on what matters:

  • Template bodies
  • Function bodies
  • If/else blocks
  • For/while loops
  • Multi-line comments
ActionmacOSWindows/Linux
Fold current blockCmd+-Ctrl+-
Unfold current blockCmd+=Ctrl+=
Fold allCmd+Shift+-Ctrl+Shift+-
Expand allCmd+Shift+=Ctrl+Shift+=

Quickly toggle line comments on selected code:

ActionmacOSWindows/Linux
Toggle line commentCmd+/Ctrl+/

The plugin supports both comment styles:

// Single line comment
/*
* Multi-line
* block comment
*/

To toggle block comments around a selection:

ActionmacOSWindows/Linux
Toggle block commentCmd+Shift+/Ctrl+Shift+/

The editor automatically indents code when you:

  • Press Enter after an opening brace {
  • Create new lines inside templates or functions

When you type an opening bracket, the editor automatically inserts the closing bracket:

  • (()
  • [[]
  • {{}
  • """