13

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.

Mark Amery
  • 143,130
  • 81
  • 406
  • 459
Seth Urquhart
  • 599
  • 5
  • 13
  • 26

5 Answers5

27
  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

Mark Amery
  • 143,130
  • 81
  • 406
  • 459
Lucky Soni
  • 6,811
  • 3
  • 38
  • 57
  • 1
    That works for the vice versa what I'm looking for, but do you know the shortcut for making a vertical list a horizontal? I tried [Ctr] + [J] and it only worked for turning a vertical list into a horizontal. – Seth Urquhart Mar 15 '13 at 17:13
  • You don't by any chance know how to do this the vice versa way do you? So i have a sentence and want to make each word a list item. – Seth Urquhart Apr 02 '13 at 23:49
7

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 !!

Community
  • 1
  • 1
1

CTRL + Shift + J will convert vertical to horizontal.

CTRL + J will convert vertical to horizontal

m4n0
  • 29,823
  • 27
  • 76
  • 89
Arun Singh
  • 11
  • 1
  • I think you should read your answer carefully. It seems, to me, that you have *one* of the actions described incorrectly ... or do both actions perform the same task? – Adrian Mole Oct 01 '21 at 09:36
0

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

Ilonke
  • 11
  • 1
0
  1. Select the text you want to convert
  2. ctrl+shift+j