Intelij removes trailing space while writing comment
Answered
Hi,
i'm simply writing a javadoc. So I'm typing "It is a beautiful " (mind the space at the and) and stop for a while to think what is so beautiful. Then after a second Intelij removes the space from the end. If I don't notice that, I will end up with malformed text.
SUPER ANNOYING!
How to get rid of it?
Please sign in to leave a comment.
Disable automatic save:
Or disable stripping of the trailing spaces (or enable the option to keep the trailing spaces on the caret line):
Just tried.
The first one did not work at all.
The second did not too, even if I set "Remove trailing spaces on save" to NONE
Btw, this is how it looks by default:
The comment with red suggest it should work as I want... Did I found some bug? :)
Please try with 2016.3.3 version: http://www.jetbrains.com/idea/download/index.html.
Ensure the Always keep trailing spaces on caret line option is enabled.
After update. Still not working (both above)...
I can't reproduce the problem, sorry.
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA with the sample project to reproduce, your IDE settings (File | Export Settings) and the logs folder zipped: https://intellij-support.jetbrains.com/hc/articles/207241085.
You probably have EditorConfig enabled: https://plugins.jetbrains.com/plugin/7294-editorconfig
I got the same problem when EditorConfig overrides IDE settings which are working good themselves.