-
Notifications
You must be signed in to change notification settings - Fork 101
Multi-caret support #11
Comments
+1 |
+1 |
same here. +1 |
@kevinsawicki If you can point me in the right direction in the snipped CS id be happy to take stab at this. id appreciate any high level knowledge as i can get in the weeds but i don't know the structure f the snippet parser or expander. |
Yeah, I'll need to think about this for a bit and try to see if it is something that can be supported with the current editor API. Will ping back soon. |
@kevinsawicki, the editor already supports multiple cursors, shouldn't think it'd be that hard to do from there. Nonetheless, this is a crucial feature for me. TextMate and Sublime have spoiled me on this one and I'll find it hard to go back :-P 👍 |
yes please! |
+1 |
4 similar comments
+1 |
+1 |
+1 |
+1 |
Refs #35 |
Whew! Does this mean that the current set of snippets should be re-written? I.e. in the language-javascript/snippets/language-javascript.json file is:
.. if I change this to
.. will it modify the array name in both instances simultaneously? |
Just tried it, works like a charm! |
I would like to support multicaret autocomplete in my snippets>
When you press tab to complete your snippet the first time it would simultaneously select all matching tab indexes in numerical order for insertion. Currently it just advances to the last one instead.
Example Snippet:
In this case pressing emw would add the completion body and multiselect all 3 $1 labeled replacement areas for editing. If there was a $2 (or multiple ones) it owuld select them after another tab press. im happy to get digging in the source for the package if you can point the right direction as this functionality is a huge timesaver for me and my dev team.
The text was updated successfully, but these errors were encountered: