Replies: 1 comment 2 replies
-
Does running "Format Selection" work? If not, this is an issue with VS Code or the Go extension, rather than the VIM extension... |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
When editing go code with the official vscode-go extension, vim's = operator, which is supposed to fix the indentation of the selection/range, fails to do anything. Is this a bug in either the go or vim extension? Is there a function I could rebind = to? At a stretch I could rebind it to just save the buffer, because in go this automatically reformats the entire file, and it doesn't really matter to me if it does that instead of just the current line/selection. But I've got barely any knowledge/experience of reconfiguring vscode-vim key bindings. How do I get it to work properly across all the vim contexts/modes and only for go code?
Beta Was this translation helpful? Give feedback.
All reactions