Comments (6)
+1 Features like this make IDEs essential.
from liteide.
https://github.com/bradfitz/goimports
This tool updates your Go imports, adding missing ones and removing
unreferenced onces.It's a fork of gofmt, and will also fmt your code, so it can be used
as a replacement for your gofmt-on-save hook in your editor.
On golang-nuts: https://groups.google.com/d/msg/golang-nuts/ahPVZ9htw7s/Nhvi50jjGd4J
It's gofmt + it fixes your includes, adding missing ones and removing unreferenced ones.
You can make it your editor's on-save hook, and then not worry about imports.
Best regards,
Dobrosław Żybort
from liteide.
+1 Looking through the code I see that gofmt is hardcoded into liteide/liteidex/src/plugins/golangfmt/golangfmt.cpp
It would be nice to have an option to configure what that binary should be (and it's arguments) but I was able to replace my system wide gofmt with goimports and it's working just fine so far. It'll be replaced again with my next go install by my package manager and the cycle will repeat.
from liteide.
accept
from liteide.
fixed
from liteide.
Nice, thanks. For all those interested, this was fixed in 60fa541
from liteide.
Related Issues (20)
- 页面UI和运行操作优化建议 HOT 4
- 在“关于插件”中关闭golangcode无效 HOT 1
- 关于运行/调试时的参数问题
- crash when i double click to open a makefile in the folder view
- 自动缩进功能无效!
- Feature Request: Support for remote dlv debugging
- 语法错误提示
- Debugging a single file?
- Failed to set system.env environment HOT 1
- GOPATH and other env can't be phrase correctly. HOT 2
- "Bookmarks", Line numbers are mixed with bookmarks description
- go1.21后自动提示功能不行了 HOT 1
- Impossible to type { HOT 1
- TARGETARGS不生效
- 官网被劫持了吗? HOT 1
- Clamav Virus Report - Unix.Malware.Kaiji-10013464-0 FOUND HOT 1
- toolchain
- 能再集成git操作就更好了
- 如何减小编译后二进制文件的大小?
- ChatGPT plugin support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from liteide.