segmentio / golines

A golang formatter that fixes long lines
MIT License
903 stars 56 forks source link

Support formatting from stdin so golines can be used directly with VS Code's Go extension #124

Open jbcpollak opened 5 months ago

jbcpollak commented 5 months ago

I would like to use golines in VS Code but I'd like to avoid using an additional extension. If golines could support formatting on stdin and then writing to stdout (it already does that) it could be used as a custom formatter directly in VS Code. See the description below:

Screenshot 2024-03-28 at 10 54 22 AM

I assume this would have utility for other IDEs and toolchains as well.