Reputation: 625
How to efficiently generate ordered list from couple of lines?
Let's say:
list item 1
list item 2
list item 3
into:
<ul>
<li>list item 1</li>
<li>list item 2</li>
<li>list item 3</li>
</ul>
Notes:
I could deduct the select_lines
from documentation, the problem was:
Ctrl+Alt+arrow
was used for desktop rotation (? :/)Ctrl+Shift+arrow
was used by Mission Control
to animate desktop, despite that the Shortcuts setting shows only Ctrl+Up/Down
without Shift
. After un-checking the option it works as supposed to.Upvotes: 0
Views: 1592
Reputation: 12217
On Mac, can be used on windows as well with a bit of changing the shortcuts.
li
. It will type on both tags at the same time - on the opener and the closing tagul
.Now all keybinding are default Mac bindings, on Windows/Linux you may find your bindings in the key bindings config. Just for reference I will write down all that were used so you could find them easier:
{ "keys": ["ctrl+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} },
The cmd+shift+arrow right is the same as pressing shift+end on Windows and Linux.
Upvotes: 2