We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Is your feature request related to a problem? Please describe.
I would like to be able to format specific ranges of files.
For example, given the following file:
if true; then fi if false; then fi
I would be able to format only the second if statement.
if
Describe the solution you'd like
Two parameters for the CLI:
--range-start
--range-end
Additional context
A popular code editor, Neovim, has support for range formatting but it requires the formatter to have options to specify the range.
The text was updated successfully, but these errors were encountered:
If I understand correctly, this would be only used in conjunction with --stdin mode?
--stdin
Sorry, something went wrong.
Correct! :)
Should be easy enough to add 🙂
No branches or pull requests
Is your feature request related to a problem? Please describe.
I would like to be able to format specific ranges of files.
For example, given the following file:
I would be able to format only the second
if
statement.Describe the solution you'd like
Two parameters for the CLI:
--range-start
to specify from which line of the file to start, preferably starting from 0--range-end
to specify until which line to formatAdditional context
A popular code editor, Neovim, has support for range formatting but it requires the formatter to have options to specify the range.
The text was updated successfully, but these errors were encountered: