zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
46.15k stars 2.59k forks source link

Key Binding for "Organize Imports" #14187

Open matthieusieben opened 1 month ago

matthieusieben commented 1 month ago

Check for existing issues

Describe the feature

Related to: https://github.com/zed-industries/zed/issues/4840

I would like to be able to control when the imports are sorted, and not do it only on format.

The reason is that it sometimes generates big GIT diffs when no actual change occurred. Since my teammates are using different editors, we can't enforce this consistently.

A key binding/explicit command would be super useful.

If applicable, add mockups / screenshots to help present your vision of the feature

No response

notpeter commented 1 month ago

To confirm, which language(s) are you using?

matthieusieben commented 1 month ago

Typescript :-)

notpeter commented 1 month ago

Excellent.

remorses commented 4 weeks ago

Also add all lsp actions like "organize imports" to the command palette, otherwise you have to press cmd-dot

aretrace commented 1 week ago

Please add Organize Imports to the command palette, frequently utilized by many users for feature discoverability.