4 ms·
JetBrains WebStorm with the free Go plug-in provides an excellent Go IDE experience. There are some free community editions of JetBrains IDEs that are supposed
by tqkxzugoaupvwqr 10y ago
JetBrains WebStorm with the free Go plug-in provides an excellent Go IDE experience. There are some free community editions of JetBrains IDEs that are supposed to work with the Go plug-in (e.g. PyCharm, if I’m not wrong), so you do not even have to pay anything.
https://www.jetbrains.com/products.html?fromMenu#type=ide https://www.jetbrains.com/products.html?fromMenu#type=ide
- powerslave85 10y agoIt is not excellent. All other editors I used autoformat Go code after save. There are two types of format provided by IDEA - IDE Format & go fmt. Both not ideal. IDE Format does not format code according go guidelines. It can delete unused imports if you go through options. go fmt does not delete unused imports, and as result code is not compileble. Refactorings are missing in IDEA. It is not excellent, it is something you can work with.
- jen20 10y agoYou can also use `goimports` with IDEA.
- tqkxzugoaupvwqr 10y agoYou can create a macro to gofmt when you save. If you desire removing unused imports, you can add “Optimize Imports” to the macro.