I don't want to delete the empty lines completely, but I want to remove the trailing tabs and whitespaces in them. Eclipse usually does it (through a preference setting) when we save the file.
For example, the file before saving ($ = end of line):
def shuffle(list):$
import random $
$
random.shuffle(list)
$
$
... and when I save this in the editor, Eclipse does the following:
def shuffle(list):$
import random$
$
random.shuffle(list)
$
$
How can I automatically trim trailing whitespace with Notepad++?
[ \t]+$
. (Screenshot) (Source)