3 ms·
The demo is impressive for something running on a browser. > Planned Features > > ... > Multi-cursor support > ... I can't live w
by alganet 4y ago
The demo is impressive for something running on a browser.
> Planned Features
>
> ...
> Multi-cursor support
> ...
I can't live without that though. SublimeText spoiled me, my editing flow is heavily based on multiple cursors.
- SpartanJ 4y agoAuthor here: I guess this is gonna be one of the most requested features. It will come sooner than later, but it's not a feature I use very often, that's probably the only reason it's not implemented yet.
- alganet 4y agoI'll keep it on my watch list! It already marks several of my editor checkboxes (LSP support, fast global search/replace, real time tree view, etc). I'll say it again, it looks very impressive.
- iddan 4y agoMore than just multi-cursor the workflows VSCode offers with them (selecting all occurrences, selecting the next occurrence) are vital for my work.
- pjerem 4y agoAren't those workflows operated by LSP Rename action rather than multi cursor ? Since Ecode supports LSP, if you only need to rename things, you should be good without multi cursor.
- panekj 4y agoLSP only applies to programming languages and specific configuration files, it's useless when you edit files such as JSON/YAML/etc.
- vageli 4y agoCould you expand on your use case? Are you writing the same thing across multiple lines? I've only gotten tripped up on multiple cursors when I somehow activate them.
- tiagod 4y agoI cant speak for the commenter you replied to, but I find it great to transform data without any tooling. As an example, if I have some tabular data, I can quickly turn it into JSON. Find-replace can also add a cursor to each result which is very helpful. Many other code/data transformation tasks are also made trivial with multiple cursors.
- Cort3z 4y agoAlso not author of original comment, but I use it for “stupid data transforms” all the time. Like formatting some stuff for a spreadsheet. I find it faster than writing a script most of the time
- alganet 4y agoMy main use cases: - Replacing variable and function names: I have Ctrl+D bound to "Mark Next Occurrence", which creates a multiple cursor and replicates the selection I have on my main cursor to the next following similar thing. Instead of changing a name and then search/replace it afterwards, I selectively mark the next occurrences within the scope I'm in and change them all at once. - Editing multiple similar expressions: If I want to add a new parameter to a function, I can multi-select `existingParam,` (including the comma) and add the new parameter to multiple occurrences within a scope. - Ctrl-based multi navigation: I use Ctrl + Arrow Keys to skip words a lot. In combination with multiple cursors, it allows each cursor to skip words individually. This is useful for the previous use case (editing parameters) when each parameter might have a different name (and therefore a different length). - Several alignment and formatting things: This is hard to explain in text. I use it to align the ` = ` sign in repeated variable assignments, to manage indentation, etc. I can do most of these things using other tools if needed (I did before multiple cursors). The parameter editing is often a vi "showcase" scenario, which I consider to be much more effective using mc than repeating actions or macros. I don't place cursors with a mouse, I don't add cursors below or above or any other feature. Just "select the next occurrence" or "select all occurrences".