-
Notifications
You must be signed in to change notification settings - Fork 459
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
Reformat Selection Support #1056
Comments
No it does not. The Spotless model is that every formatter is just But it sorta does, in that we have a
For now, that mechanism is used to support So you might be able to use a mechanism like that to accomplish your goals. You would need to:
The failure mode is that a formatter might remove your markers, which is a difficult failure mode to explain. |
This is great, thanks so much for the the response @nedtwigg! I'll do some more digging, and perhaps not support reformat by text selection in the first version of the plugin 😄 |
Hello,
Does Spotless support reformatting a text range rather than the whole file? Thinking about creating a plugin for an IDE many IDEs support reformatting both the entire file and a text selection, so having that parity with a spotless plugin would be great.
Thanks!
The text was updated successfully, but these errors were encountered: