Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Gobble CodeNew to Visual Studio Code? Get it now.
Gobble Code

Gobble Code

Marius Gundersen

| (0) | Free
Gobble next code section into current wrapping element
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Gobble Code

A VS Code extension that lets you "gobble up" the next code section into your current wrapping element or block.

Features

  • Gobble the next sibling section into an HTML element: <p>|</p>{text} → <p>{text}|</p>
  • Gobble the next sibling section into a C-style block: if (x) { | } next() → if (x) { next() | }
  • Supports HTML, XML, JavaScript, TypeScript, JSX, and TSX files

Usage

  1. Place your cursor inside a wrapping element or block
  2. Press Ctrl+Alt+G (Windows/Linux) or Cmd+Alt+G (Mac)
  3. The next code section will be moved inside the current wrapper

Installation

Run the extension in development mode:

  1. Open this folder in VS Code
  2. Press F5 to launch the Extension Development Host
  3. Test the extension in the new window

Requirements

  • VS Code 1.74.0 or higher
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft