Nice advices, thanks for sharing. I discovered these progressively, and they make me save so much time today!
As for points #1 and #2, I'm working on a VS Code Extension to go even further! The idea is to provide automated refactorings to save me some time on the thing I frequently do (just like "Rename Symbol").
Related to #2: with alt + up and alt + down you can move lines up / down indeed. But sometimes, you'd like to move a statement above / below another one. Like, to switch from:
in a single keystroke. Moving lines up/down will mess things up until you're done, because the two objects would "merge". Thus, we tend to cut & paste indeed.
With Abracadabra, I'm working on a "Move Statement Up/Down" so you can swap them with Ctrl + Shift + Up for instance 😁
Well, that's one example. If you feel like trying it, I'd love to get your feedbacks so I can make it better!
Anyway, thanks for this article. Have a great week 👋
Nice advices, thanks for sharing. I discovered these progressively, and they make me save so much time today!
As for points #1 and #2, I'm working on a VS Code Extension to go even further! The idea is to provide automated refactorings to save me some time on the thing I frequently do (just like "Rename Symbol").
Maybe you'd be interested in checking it out.
It's called Abracadabra: bit.ly/vscode-abracadabra
Related to #2: with
alt + up
andalt + down
you can move lines up / down indeed. But sometimes, you'd like to move a statement above / below another one. Like, to switch from:to the following:
in a single keystroke. Moving lines up/down will mess things up until you're done, because the two objects would "merge". Thus, we tend to cut & paste indeed.
With Abracadabra, I'm working on a "Move Statement Up/Down" so you can swap them with
Ctrl + Shift + Up
for instance 😁Well, that's one example. If you feel like trying it, I'd love to get your feedbacks so I can make it better!
Anyway, thanks for this article. Have a great week 👋
This looks super cool. Thanks for making this!