6 ms·
What do you actually use multi-cursor for in typical coding? I tried it out when it was introduced in IntelliJ. I thought it was cool, but I've not run into any
by WillAbides 10y ago
What do you actually use multi-cursor for in typical coding? I tried it out when it was introduced in IntelliJ. I thought it was cool, but I've not run into any uses for it in the years since.
- RubyPinch 10y agorefactoring (select a variable name, select all instances of that name, change), and also 1 time pre-processing data
- WillAbides 10y agoThat makes sense. I use RubyMine's refactoring to rename all instances of a variable, but if that weren't available multi-cursor would certainly be a lot easier than copy-pasting.
- cyphar 10y ago> refactoring (select a variable name, select all instances of that name, change), regex works great for me in vim > 1 time pre-processing data I use regex for this most of the time, and macros if it's more complicated. I think macros are actually quite a bit more powerful than multiple cursors because you can apply the same set of transformations between files (and without needing to match against a particular word or pattern).