0

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
  • 1
    try alt + left mouse click to enter multiple cursor anywhere. Commented Dec 7, 2022 at 5:59

1 Answer 1

3
  • add multi cursors at each line: use Ctrl+Alt+Down or Ctrl+Alt+Up
  • or any other method for multi cursor if you have few Alt+Click or a lot Shift+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}

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.