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
Horizontal list to vertical list and vice versa - Sublime Text 2
提问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 Lucky Soni
1) Select the text you want to convert
2) Command+ Jon Mac or CTRL+ Jon Windows
1) 选择要转换的文本
2) Command+J在 Mac 或CTRL+J在 Windows
Also here is a list of some more useful shortcuts http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html
这里还有一些更有用的快捷方式列表 http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html
Other great resources
其他优质资源
http://www.sublimetext.com/docs/2/
http://www.sublimetext.com/docs/2/
https://tutsplus.com/course/improve-workflow-in-sublime-text-2/
https://tutsplus.com/course/improve-workflow-in-sublime-text-2/
http://docs.sublimetext.info/en/latest/customization/key_bindings.html
http://docs.sublimetext.info/en/latest/customization/key_bindings.html
回答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
确保在搜索模式块中选择了扩展单选按钮