Horizontal list to vertical list and vice versa - Sublime Text 2
Asked Answered
C

5

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.

Christiano answered 15/3, 2013 at 17:5 Comment(0)
Z
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

Zaidazailer answered 15/3, 2013 at 17:8 Comment(3)
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.Christiano
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.Christiano
The key binding for Join Lines has changed to Cmd+Shift+J on Mac. (MacOS Ventura 13.3.1)Robertroberta
D
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 !!

Doit answered 12/3, 2014 at 12:7 Comment(0)
H
2

CTRL + Shift + J will convert vertical to horizontal.

CTRL + J will convert vertical to horizontal

Hymenium answered 1/10, 2021 at 5:55 Comment(2)
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?Dowson
CTRL+SHIFT+J on Windows work,thanksAmaras
I
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

Ingleside answered 14/11, 2016 at 13:21 Comment(0)
R
0
  1. Select the text you want to convert
  2. ctrl+shift+j
Revers answered 28/9, 2021 at 6:59 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.