SublimeText / TrailingSpaces

Highlight trailing spaces and delete them in a flash.
MIT License
897 stars 94 forks source link

Ignore lines that only contain whitespace #18

Closed Francisc closed 12 years ago

Francisc commented 12 years ago

Hello,

Is it possible to ignore lines that only contain whitespaces?

For example, if I'm inside an indented context, and press Enter 5 times to make some room, I get a lot of highlighted spaces. I made a few new lines to clear some of the noise and now I have too much colour haha.

chikamichi commented 12 years ago

Good dev. guidelines would require empty lines to be actually empty (no whitespaces). Most code editor are configured this way.

As ST can (un)fortunately deviates from this from time to time (depending on language configuration), an option was added a few days ago to control this behavior. Check commit c355e75.

Francisc commented 12 years ago

Those lines are temporary, I don't leave them in. It's just when I want to make room (temporary) or just after pressing one Enter before I type, I get a bright pink flash.

Francisc commented 12 years ago

I set "trailing_spaces_include_empty_lines":false in the Sublime Text User Settings. It's the same. What am I doing wrong?

chikamichi commented 12 years ago

Le mar. 19 juin 2012 23:59:51 CEST, Francisc Romano a écrit :

I set "trailing_spaces_include_empty_lines":false in the Sublime Text User Settings. It's the same. What am I doing wrong?

Current implementation of settings management is half-broken. One has to add settings in a custom file name trailing_spaces.sublime-settings (see the README for exact location depending on the OS). I'm not using ST2 anymore but still I'll fix that (currently investigating actually :)).

Francisc commented 12 years ago

Ah! Misread. Thank you.

What are you using now?

chikamichi commented 12 years ago

Le mer. 20 juin 2012 11:41:49 CEST, Francisc Romano a écrit :

Ah! Misread. Thank you.

What are you using now?

Actually never changed for years, still vi in console, highly customized. Tried ST2 a few days last year.

Francisc commented 12 years ago

Aha. Merci.