Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SublimeText2 - Wrap lines with quotes or tags skipping initial whitespaces

Tags:

sublimetext2

I know i can select a block of lines, and then split it into many selections, one per line, using Ctrl+Shift+L then just typing a quote it will wrap the line automatically or to wrap each line with htlm tags I know I can use ctrl+shift+w
The problem is that I would like to skip the initial whitespaces of each line and just adding a quote or a html tag at the begging of the first word.
ps: Im using SublimeText 2 with Vintage

like image 590
nsbm Avatar asked Apr 29 '13 13:04

nsbm


2 Answers

Select a block, then press:

Ctrl+Shift+L, Home, Shift+End

Is that what you are looking for?

like image 111
Hugo Corrá Avatar answered Nov 13 '22 16:11

Hugo Corrá


Select a block, then press:

Command+Shift+L, right-arrow, Command+Shift+left-arrow

(Note: I'm on a mac.)

like image 28
Shoff Avatar answered Nov 13 '22 17:11

Shoff