3 ms·
I use multi-cursor editing daily. It’s very useful for aligning code, quick name changes, joining/expanding to multiple lines, etc. Works best when paired with
by judahcr 10mo ago
I use multi-cursor editing daily. It’s very useful for aligning code, quick name changes, joining/expanding to multiple lines, etc.
Works best when paired with a "duplicate cursor at next match" keybind.
- cake-rusk 10mo agoFind and replace does all of this, right?
- viralsink 10mo agoMulti cursor edits feel nice during flow state, they let your brain stay in "edit" mode. However I only use them for edits of around 20-30 lines at a maximum. Another use case for me is extracting interesting information from debug logs, where I don't want to think of a regex and the lines are similar enough.
- Neywiny 10mo agoI guess if you select the block and can tell it to only replace within that block, yes. As far as I know VSCode/Theia don't allow that. It's either click replace 20 times, copy/paste to a new file and replace all that way, or a quick multi cursor. I prefer the multi cursor. Especially when the language servers glitch out and don't let me rename the symbol gracefully, but there are many other use cases like the alignment as they mentioned.
- cake-rusk 10mo agoVSCode can replace within a selected block. Though it takes an extra click. I see you point.