Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Cmd Enter BracketsNew to Visual Studio Code? Get it now.
Cmd Enter Brackets

Cmd Enter Brackets

tikusieg

|
26 installs
| (0) | Free
Insert brackets `{}` at the end of a line when Cmd+Enter is pressed.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cmd Enter Brackets

This extension inserts a code block ({}) at the end of the line when you press Cmd+Enter (macOS) or Ctrl+Enter (Windows), but only when the cursor is at the end of the line and not after a semicolon.

Features

  • Insert {} block with proper indentation
  • Avoid insertion if line ends with ;
  • Works in any language/text file

Usage

  • Place your cursor at the end of a line
  • Press Cmd+Enter or Ctrl+Enter
  • {} will be inserted with cursor inside

Keyboard Shortcuts

  • macOS: Cmd+Enter
  • Windows: Ctrl+Enter

Release Notes

See CHANGELOG.md

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