You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The current UX of "Move Statements" refactorings is not as good as I'd expect.
Few things that needs to be improved:
On some patterns, the refactoring would add unexpected blank spaces. That's the case when we move objects / classes attributes or methods.
The refactoring bubbles up to the parent, and that's sometimes unexpected. For example, if we move down a method of a class it will move the whole class down if we reach the end and the method can't be moved down anymore => the command bubbled up to the whole class, and that was not expected
Overall, moving statements should feel fluid and the scrolling should follow accordingly
Expected behavior
Webstorm does it very well. What I want is to feel the same comfort in moving statements within VS Code, thanks to Abracadabra.
Let's do some usability tests (e.g. try to move statements on some patterns and see if it doesn't feel perfect) and fix the issues.
I'll close the issue when I feel Move Statements UX is so good that I would only use that to move things up and down.
To Do
After playing with current implementation, here are the things we want to improve:
block scope (don't move parent!)
only scroll when it's necessary
Arrays, just like object properties
fix cursor position after moving statement (fix the edge cases: comments, blank spaces, methods, functions, etc.)
refactor duplication between slide up and slide down I didn't find the correct abstraction yet, so I'll keep it like that
The text was updated successfully, but these errors were encountered:
Describe what's missing
The current UX of "Move Statements" refactorings is not as good as I'd expect.
Few things that needs to be improved:
Expected behavior
Webstorm does it very well. What I want is to feel the same comfort in moving statements within VS Code, thanks to Abracadabra.
Let's do some usability tests (e.g. try to move statements on some patterns and see if it doesn't feel perfect) and fix the issues.
I'll close the issue when I feel Move Statements UX is so good that I would only use that to move things up and down.
To Do
After playing with current implementation, here are the things we want to improve:
refactor duplication between slide up and slide downI didn't find the correct abstraction yet, so I'll keep it like thatThe text was updated successfully, but these errors were encountered: