7
0
I'm looking for a mechanism within notepad++ to replace runs of consecutive whitespace with a single space, like the "Compress whitespace" command in notepad2.
Essentially, in regex form:
s/\s+/ /g
I know I can do it with the find-replace form, but I would prefer soemthing that I can bind to a keyboard sequence.
EDIT
Find and replace cannot be recorded as a macro in some versions of Notepad++. Update to the latest if you have trouble.
Wouldn't \s also match end of line characters? I'd think you'd want to find
+
(space plus) and replace with(space) – Zachary Scott – 2016-07-29T19:58:59.137