prettier-java icon indicating copy to clipboard operation
prettier-java copied to clipboard

Please support prettier-ignore-start/end

Open nbelakovski opened this issue 7 months ago • 1 comments

I have some blocks of code that I'd like to keep as is, but it appears that the range ignore specified in the prettier docs is not supported here yet

nbelakovski avatar May 06 '25 03:05 nbelakovski

That section of the Prettier docs is under the Markdown section, and those comments are seemingly only supported in Markdown files. That being said, Prettier Java supports @formatter:off and @formatter:on, so we could likely easily support prettier-ignore-start and prettier-ignore-end similarly. For now, I'd recommend using the @formatter:off/@formatter:on comments that are currently supported.

jtkiesel avatar May 06 '25 04:05 jtkiesel