Input:
boston beach summer figural yellow blue boston floral flowers still still-life food pink figural boston horse pink purple house flowers floral figural
Expected output:
"boston beach summer figural yellow blue" "boston floral flowers still still-life food pink figural" "boston horse pink purple house flowers floral figural"
The actual input file has 600+ lines, and I'm looking at a quick way to wrap each line in quotes? Does the method involve using multiple cursors? How about macros?
To select multiple regions using the keyboard, select a block of text, then press Ctrl+Shift+L to split it into one selection per line. When you're done with using multiple selections, just press Ctrl+K to trim all but the first.
I would use a multiple cursors approach like this:
Windows
Mac
Method 1:
Replace (.*)
with "\1"
Method 2:
Ctrl+a, Ctrl+Shift+l, "
Method 3:
Ctrl+a, Ctrl+Shift+l, End, "
, Home, "
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With