-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
format selection == doesn't work with rust #4659
Comments
This is likely a bug/limitation of the rust plugin. When |
Thanks for the prompt reply! Could you guide me on how to call that command? Thanks! |
Open the command palette ( |
I tried with a python file and I can find the |
This probably means the rust formatter only supports formatting entire files (I know python's |
In case others stumble upon this like I have. You can now get this to work using rust-analyzer and opting into the nightly version of rustfmt. You can do this in two steps. Firstly, install the nightly version of rustfmt
|
The option is now spelled |
Is your feature request related to a problem? Please describe.
I want to format the selected code with = key for rust lang.
Describe the solution you'd like
select code and use == to format code. In normal mode, just =G to format all. I hope
rustfmt
can be supported by vscodevim!Describe alternatives you've considered
I'm using vscode plugin
rust-lang.rust
and I need to useeditor.formatOnSave
to format all codes.The text was updated successfully, but these errors were encountered: