It happens many times when we need to remove line end and unnecessary space between the HTML element. So this could be proven as a time-saving technique.
Ctrl + H on PC, or. Command + Alt + F on Mac or.
\n\s+ in the search field, clear the replace field
This will remove all newlines (\n+) followed by all whitespace (\s+) in the next line.
In your Sublime Text user settings, you can specify the following to trim trailing white space.
"trim_trailing_white_space_on_save": true You might want to have a look at the Trimmer that has a couple of options to trim whitespace.
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