ktfmt
ktfmt copied to clipboard
Ignore specific multi-line code
Hello there!
Is there a way to ignore specific lines with pragma directives?
eg.
// format:off
...
// format:on
Are there plans to add this kind of feature?
Thanks!
Don't think we have this / plan to have this today.
Two questions:
- What's the scenario / why do you want this?
- Do you know if GJF supports this? If not, it would be tough, since that's the engine we use.
GJF doesn't support that. There is a feature request for it with many arguments for and against it.
We'll be using Google Java Format to back that. Once they support it you can reopen so we bring that feature to ktfmt