https://github.com/tachuris/vscode-iferrblocks
A Visual Studio Code extension that (un)folds all Go error handling blocks.
https://github.com/tachuris/vscode-iferrblocks
folding golang typescript vscode vscode-extension
Last synced: about 1 month ago
JSON representation
A Visual Studio Code extension that (un)folds all Go error handling blocks.
- Host: GitHub
- URL: https://github.com/tachuris/vscode-iferrblocks
- Owner: tachuris
- License: mit
- Created: 2017-09-09T20:45:20.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-10T00:07:03.000Z (almost 9 years ago)
- Last Synced: 2026-03-08T04:43:12.625Z (3 months ago)
- Topics: folding, golang, typescript, vscode, vscode-extension
- Language: TypeScript
- Size: 11.5 MB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-iferrblocks
Don't get me wrong: I do think that [Go's error handling is elegant](https://davidnix.io/post/error-handling-in-go/), 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](https://www.reddit.com/r/golang/comments/6v07ij/copypasting_if_err_nil_return_err_everywhere/).
## 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.

## Release Notes
### 1.1.1
Initial release of iferrblocks.
**Enjoy!**