intellij-community
intellij-community copied to clipboard
[IDEA-290250] Improve the order of the editor popup menu entries
Hi,
Among other entries, we have:
Find Usages Refactor
Folding Analyze
Go to Generate...
Find Usages and Go to are both navigation features. Refactor and Generate... are both automatic code writing features. They should be gathered. I suggest to switch Refactor and Go to.
@yole, I have successfully tested.
@ybedrov, perhaps it should be reassigned. The PR hasn't changed for 10 months.
The change looks logical but there are 2 considerations:
- muscle memory
- probably Go To actions are used by shortcuts more than refactorings, so the change would result in more "scrolling" for them. What do you think, does it really worth it? Thanks
I can invert the order if you want:
Generate... Refactor
Folding Analyze
Find Usages Go to
Muscle memory is important, but it's better to consider the future than the past.
Doesn't solve the second issue, that goto is most probably invoked with the mouse or shortcut.
So let's keep Go to... at the same place and move the others. There are a number of possibilities!
@akozlova, to move the debate forward, I suggest to move only one entry, let's say Go to:
Find Usages Go to Refactor
Folding Analyze
Generate...
@yole I think, I am fine with the suggested change, you?
Thanks for your contribution! We implemented part of these changes internally; I hope the result works well for you.
I had the opportunity to test it successfully on IntelliJ 2021.1.3
I can't test on a more recent installation because we can't hack the files of the installation on the further versions.
I have successfully verified this feature with this configuration: IntelliJ IDEA 2023.1 EAP (Community Edition) Build #IC-231.4840.387, built on January 19, 2023 Runtime version: 17.0.5+8-b759.1 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 10 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1010M Cores: 4 Non-Bundled Plugins: com.dubreuia (2.3.0)
Kotlin: 231-1.7.21-release-272-IJ4840.387