Of course the fact that you can refactor on IDEs is priceless for many, I hardly ever do it when I am coding but I may try to do it when editing some one else\'s source. How do
- Rename
- Extract Function
- Extract Local Variable
- Toggle var ⇔ :=
- Add Godoc stubs
There is a vim plugin https://github.com/godoctor/godoctor.vim which makes them available
With cursor in thing to rename:
:Rename
Highlighting block to extract:
:Refactor extract newfunc
vim-go
:GoRename
.Language server gopls