Reputation: 2149
I would like to be able to remove whitespace and newlines for a block of code/text.
A single line is sometimes easier to copy paste into cli tools.
I currently do this using find and replace on whitespace and newlines, but is there a faster way?
Upvotes: 6
Views: 2268
Reputation: 2149
Found this after a bit of digging in the keymap:
Join lines: Ctrl+Shift+J
It even handles multi-line comments.
Upvotes: 11