Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>(Un)fold Go error handling blocksNew to Visual Studio Code? Get it now.
(Un)fold Go error handling blocks

(Un)fold Go error handling blocks

Ricardo Stuven

|
4,581 installs
| (0) | Free
An extension that (un)folds all Go error handling blocks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

iferrblocks

Don't get me wrong: I do think that Go's error handling is elegant, but sometimes one just want to follow the happy path alone folding those pessimistic parts of the code, and then get back to fully see all that wonderful error handling. Or maybe not if you find it cluttered and hard to read.

Features

This extension finds all the if err blocks and either fold them or unfold them. The rest of the foldings keep untouched. That's it.

Folding and unfolding of if err blocks

Release Notes

1.1.1

Initial release of iferrblocks.

Enjoy!

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