list 水平列表到垂直列表,反之亦然 - Sublime Text 2

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/15438191/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-11 01:58:37  来源:igfitidea点击:

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

listkeyboard-shortcutssublimetext2horizontallistvertical-text

提问by Seth Urquhart

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.

我不记得我在哪里看到或读过它,但似乎有一个快捷方式可以将用逗号分隔甚至没有逗号分隔的单词的水平列表转换为垂直列表,允许我快速构建带有 LI 标签的 UL垂直列表。

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

我只需要一个快捷方式,用一个常见的句子制作一个垂直列表,我有一个 Windows 8 操作系统。

Thanks :)

谢谢 :)

回答by Rafael Seidalinov

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

适用于 A、B、C 等列表...也许也适用于其他

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

1) 找到所有 {your delimiter} ( Ctrl+ F,Alt+ Enter)

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

2) 从分隔符 ( Shift+ <-->) 中删除多选

3) Enter

3) Enter

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

注意:即使是 Alt + F3 也可以一次性完成!

回答by Ilonke

CTRL-H (Find and Replace)

CTRL-H(查找和替换)

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

查找 = "," 或您的分隔符替换为 = "\n"

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

确保在搜索模式块中选择了扩展单选按钮

Find and Replace values

查找和替换值