Sublime Forum

Remove duplicates lines but not blank lines in Sublime Text

#1

I know that you can remove duplicate lines by doing Edit>Permute Lines>Unique. But that will remove blank(empty) lines. I would like not to remove them, so blank lines will stay(essentially empty space).

0 Likes

#2

For cross reference purposes if someone searches for this in the future and lands here:

https://stackoverflow.com/a/69913853/814803

0 Likes