pfwpaw
Last Updated: February 25, 2016
·
1.863K
· 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

3910

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

at least it does so on my computer)

over 1 year ago ·
3912

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 ·
3913

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

over 1 year ago ·
3943

Very handy! Thanks for the tip!

over 1 year ago ·