Last Updated: February 25, 2016
·
2.058K
· pent

Sublime Text: Surround each line with tags

Requirements:
+Sublime Package Control
+Tag Package

  1. Select many lines
  2. cmd+shift+l to split the selection into many selections, one per line
  3. ctrl+shift+w to add a tag
  4. Upon finishing, inserts open and close tags encasing every line selected

4 Responses
Add your response

note for windows users
sublime closes itself on ctrl+shift+w

at least it does so on my computer)

over 1 year ago ·

ctrl+shift+w or cmd+shift+w will close sublime on both osx and windows, on keyboard default binding, need to use ctrl+w instead.

over 1 year ago ·

ah I left out something important, you need the package installer + tag package for this.

over 1 year ago ·

Very handy! Thanks for the tip!

over 1 year ago ·