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?
Please sign in to leave a comment.
You can disable code formatting for certain regions of code outlined with the comments: http://stackoverflow.com/a/19492318/104891.
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?
There is no such setting, otherwise I'd mention it in the answer.
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?
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.