Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>Go Heap Escape HighlighterNew to Visual Studio Code? Get it now.
Go Heap Escape Highlighter

Go Heap Escape Highlighter

Roman Grudzinski

|
1 install
| (1) | Free
Highlights heap escapes, inlining calls, and devirtualizations from go build -gcflags=-m
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Go Escape Highlighter

Highlights lines reported by go build -gcflags=-m:

  • Orange — variable escapes to heap
  • Blue — inlining call
  • Green — devirtualized interface call

Highlight with hover

Analysis runs automatically on save. Use Go: Analyze Heap Escapes from the Command Palette to run manually.

Settings

Setting Default Description
goEscape.autoAnalyze true Run analysis automatically on save
goEscape.enableEscapeHighlight true Show heap escape lines
goEscape.enableInlineHighlight true Show inlining lines
goEscape.enableDevirtHighlight true Show devirtualization lines
goEscape.escapeColor rgba(255,160,0,0.04) Heap escape highlight color
goEscape.inlineColor rgba(100,180,255,0.04) Inlining highlight color
goEscape.devirtColor rgba(100,220,120,0.04) Devirtualization highlight color
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft