Sublime Text 2 多行编辑 [英] Sublime Text 2 multiple line edit
本文介绍了Sublime Text 2 多行编辑的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想编辑多行以及该行中的每个单词".例如:
I want to edit multiple lines and every "word" within that line. For example:
45 28 42 65
24 87 47 95
01 25 87 98
我想选择所有行中的每个整数,并在它前面放一个0x",这样它看起来像:
I want to select every whole number in all lines and put a "0x" before it so it would look like:
0x45 0x28 0x42 0x65
0x24 0x87 0x47 0x95
0x01 0x25 0x87 0x98
我知道 Ctrl+shift+L 可以在每一行上获取游标,但是我怎样才能在每行前面获取游标一次批量编辑的号码?
I know the Ctrl+shift+L to get cursors on each line, but how can I get the cursors in front of every number to mass edit all at once?
推荐答案
突出显示线条并使用:
- Windows:Ctrl+Shift+L
- Mac:Cmd ⌘+Shift+L
- Windows: Ctrl+Shift+L
- Mac: Cmd ⌘+Shift+L
然后您可以将光标移动到您想要的内容并一次性编辑所有行.
You can then move the cursor to your heart's content and edit all lines at once.
它在选择"菜单中也称为拆分成行".
It's also called "Split into Lines" in the "Selection" menu.
这篇关于Sublime Text 2 多行编辑的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文