I'm looking for something like (setq show-trailing-whitespace t) in emacs, where all of the trailing whitespace is blindingly clear, ie highlighted. My searches for this kind of option have mostly turned up examples of removing all trailing whitespace, which is not at all what I'm looking for.
Trailing whitespace. Description: Used when there is whitespace between the end of a line and the newline.
Hover the mouse on warning in VS Code or any IDE and use quick fix to remove white spaces. Press f1 then type trim trailing whitespace .
Click on:
Window > Preferences > General > Editors > Text Editors
Then click on the link "whitespace characters" to specify what should be shown.
What I settled on for this takes a plugin but isn't bad. Then your trailing whitespace will show up as an eclerror/warning in the file.
1: eclipse checkstyle plugin 2: make a checkstyle config as generous as you want. if you ONLY want trailing whitespace:
<module name="Checker"> <module name="TreeWalker"> <module name="Regexp"> <property name="format" value="[ \t]+$"/> <property name="illegalPattern" value="true"/> <property name="message" value="Trailing whitespace"/> </module> </module> </module>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With