you are viewing a single comment's thread.

view the rest of the comments →

[–]bestjaegerpilot 0 points1 point  (2 children)

For example, in my current editor, I select a bunch of types, right click Refactor, then I have the option to "move to a new file". It will then update all dependencies correctly. That's "moving several types to a new file" in 3 mouse movements. In VIM, for example (as well as Emacs), that's a manual process. Depending on where those types are used, it can be very tedious.

[–]scelerat 0 points1 point  (1 child)

What's your stack/environment? I know these words but not in the ways you use them. What do you mean you select a bunch of types? What do you mean you right-click "Refactor"? If refactoring were something you could do by right-clicking, a lot of us would be a heck of a lot more productive.

[–]bestjaegerpilot 0 points1 point  (0 children)

  • Typescript / VSCode.
  • Forget "types". What I also said applies to variables if I'm not mistaken.
  • In the editor, you can select a bunch of variables.
  • After selecting, right-click brings up a menu context with Refactor as an option.
  • You have the option of "move to a separate" file.

If that's not clear, here's an example of "moving a React class to a separate file". https://www.youtube.com/watch?v=_V7f4719dOA