support for range formatting #17899
ip-ragmatic
started this conversation in
General
Replies: 1 comment 1 reply
-
I'm not sure about helix, but in VS Code I had to:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello anyone reading this, I was wondering if there is any plans for further development of support range formatting. In the Configuration section of the manual there's a
rust-analyzer.rustfmt.rangeFormatting.enable
config that enables rustfmt's unstable range formatting for textDocument/rangeFormatting on nightly build. I've enabled this configuration.I'm not sure if it's relevant to this discussion, but I'm using Helix and am trying to format a selection (using
=
key bound toformat_selections
). When I'm running RA stable, I get the errorNo configured language server supports range formatting
when trying to format selection, and when I'm using RA nightly (64a1405) the error doesn't pop up but the code I selected doesn't get formatted.Also, I've enabled this in my helix/languages.toml file. But is there a separate place I need to enable this for RA itself? I installed the RA nightly binary, if that's of importance.
By the way, RA is awesome so thank you to all the people who are contributing to it!
Beta Was this translation helpful? Give feedback.
All reactions