4 ms·
I do it all the time. That's the thing, once you can do it without hassle, you do it. Regular scenarios: 1. Refactoring 2. You are experimentally coding and c
by mattmanser 4y ago
I do it all the time. That's the thing, once you can do it without hassle, you do it. Regular scenarios:
1. Refactoring
2. You are experimentally coding and changing names of methods and variables as you realize you need to split stuff up
3. One of your colleagues can't name stuff for shit
The IDE I use makes it so easy it's just a thing I do without even thinking about it.
Another great thing is just highlighting some code and with a simple keypress extracting that code to a new method, with the right return type, params, etc. all done automatically. Not quite right? Highlighted the wrong rows? Press ctrl-z.