Preventing formatter to format some part of the code

Hi,

I just would like to know if there's a way to quote or annotate a block of code to ensure that reformatting is not processing this specific part of code.

Thanks

4 comments
Comment actions Permalink

Hello Regis,

I just would like to know if there's a way to quote or annotate a
block of code to ensure that reformatting is not processing this
specific part of code.


No, there is no such way.

--
Dmitry Jemerov
Development Lead
JetBrains, Inc.
http://www.jetbrains.com/
"Develop with Pleasure!"


0
Comment actions Permalink

don't think there is such functionality, but who knows...

btw, you can format only selected lines, sometimes it is sufficient

0
Comment actions Permalink

That's not a solution since we have "reformat on commit changes" activated. I want to keep developers to ensure code formatting everytime they submit. But in some particular cases (hopefuly for me) code formating is not suited.

0
Comment actions Permalink

Thanks Dmitry, that could be a cool feature in a next version.

0

Please sign in to leave a comment.