Seth Urquhart
Seth Urquhart

Reputation: 599

Horizontal list to vertical list and vice versa - Sublime Text 2

I can't remember where I saw it or read it, but appearantly there is a shortcut for transforming a horizontal list of words seperated with commas or even without commas, into a vertical list allowing me to quickly build a UL with LI tags for the vertical list.

I just need the shortcut to make a vertical list out of a common sentence, I have a windows 8 OS.

Upvotes: 13

Views: 43860

Answers (5)

Arun Singh
Arun Singh

Reputation: 21

CTRL + Shift + J will convert vertical to horizontal.

CTRL + J will convert vertical to horizontal

Upvotes: 2

Khatri Om
Khatri Om

Reputation: 1

  1. Select the text you want to convert
  2. ctrl+shift+j

Upvotes: 0

Lucky Soni
Lucky Soni

Reputation: 6888

  1. Select the text you want to convert
  2. Command + J on Mac or CTRL + J on Windows

Also here is a list of some more useful shortcuts https://docs.sublimetext.io/reference/keyboard_shortcuts_osx.html

Other great resources

http://www.sublimetext.com/docs/2/

https://tutsplus.com/course/improve-workflow-in-sublime-text-2/

https://docs.sublimetext.io/guide/customization/key_bindings.html

Upvotes: 27

Rafael Seidalinov
Rafael Seidalinov

Reputation: 181

for vise versa - horizontal to vertical

suppose not the best way but i use it

works for lists such as A,B,C,... maybe also possible for other

1) find all {your delimiter} (Ctrl+F , Alt+Enter)

2) remove multi selection from delimiter (Shift+<- ->)

3) Enter

Note: Even Alt + F3 does the same in one stroke !!

Upvotes: 7

Ilonke
Ilonke

Reputation: 11

CTRL-H (Find and Replace)

Find = "," or your delimiter Replace with = "\n"

Make sure, the EXTENDED radio button is selected in the Search Mode block

Find and Replace values

Upvotes: 0

Related Questions