Java: Do not wrap line with TAG

Answered

We have defined, that IntelliJ wrapps the line if there are more than 120 characters.

This works fine, but often we use the "//NOSONAR"-Tag a the end of the line.

is there a possibilty that IntelliJ does not wrap these lines?

0
5 comments

You can disable code formatting for certain regions of code outlined with the comments: http://stackoverflow.com/a/19492318/104891.

0
Avatar
Permanently deleted user

I found this blog, but this i do not like this solution. Is  there no setting to say if there is a //NOSONAR at the end --> do not wrap?

0

There is no such setting, otherwise I'd mention it in the answer.

0
Avatar
Permanently deleted user

Ok, but I think this I a "nice feature" also for other users. Do you see a possibility that you will implement this in the future?

0

Not wrapping a line depending on its contents looks like a too specific use case, request is welcome at https://youtrack.jetbrains.com/issues/IDEA, but it's unlikely to get high votes count and priority to be addressed in the nearest future.

0

Please sign in to leave a comment.