I have a snippet. I want to select multiple lines - a set of relative paths to images that I have pasted in - and have the snippet be applied to each line separately. The snippet menu doesn't seem to have the same capabilities as Emmet (* treats each line separately)
1 Answer
- add multi cursors at each line: use
Ctrl+Alt+DownorCtrl+Alt+Up - or any other method for multi cursor if you have few
Alt+Clickor a lotShift+Alt+Click - select the text of each line
- type the snippet prefix and select the snippet
this works if the snippet uses the variable ${TM_SELECTED_TEXT}