In Notepad++, is there a hotkey to wipe all white space left and right of the cursor? I'd imagine it would be the same as "delete current word", but I can't find it.

  • Ctrl + Del deletes to the end of the word
  • Ctrl + Backspace deletes to the beginning of the word
link|improve this question
feedback

1 Answer

There is no shortcut by default, but you can easily add one using the shortcut mapper. The action to remove leading and trailing space is found in Edit > Blank operations > Remove leading and trailing space

You can map it by going to Settings > Shortcut Mapper... > Then scrolling to whichever one you want (such as 29) and double clicking on the cell under Shortcut.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.