Code refactoring in Zed #8623
Replies: 3 comments
-
Although a completely different workflow, Zed provides a versatile tool called multi-buffers that allows you to perform various project-wide operations, including refactoring. There's an official Zed demo where Antonio shows how he goes about refactoring a Rust struct usage across his project. |
Beta Was this translation helpful? Give feedback.
-
+1 on this, that is the main reason for me not switching to Zed :) |
Beta Was this translation helpful? Give feedback.
-
The partial solution above, multi-buffers, don't address the full power of refactors in IntelliJ. In IntelliJ, there's a "move to another file" refactor, which moves an item (struct, fn, enum) to another file, automatically updating all the imports in the process. This is a huge feature that's missing for me and prevents me from switching to Zed full time. |
Beta Was this translation helpful? Give feedback.
-
One of my favorite aspects of JetBrains IDEs is their robust refactoring functionality. The ability to search for references when changing filenames, class names, configurations, or variables is invaluable. This is a major reason I prefer JetBrains over VS Code. Their search tools for finding text and files are also excellent, but that's a separate discussion.
I've reviewed the Zed roadmap (https://zed.dev/roadmap) and don't see any specific plans to enhance refactoring capabilities. While I generally agree with the 'less is more' philosophy, I believe refactoring tools are a core IDE feature. It would be ideal if either plugin developers or the Zed core team could implement these improvements. What are your thoughts on this?
Beta Was this translation helpful? Give feedback.
All reactions