Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Please add the CMD + Click function to find the references of the class, object or method #290

Open
alexandertsukanov opened this issue Oct 3, 2024 · 3 comments
Labels
enhancement New feature or request

Comments

@alexandertsukanov
Copy link

Good afternoon. As a user, I want to be able to search for all references of a method or object across the project. Currently, I can achieve the desired behavior by using "right-click > Go to References," but this is not productive for me as a developer.

The same behaviour could be found within next VS Code plugin https://github.com/redhat-developer/vscode-java

Thanks, for your attention, and I am looking forward to your reply.

@sid-srini
Copy link
Member

sid-srini commented Oct 4, 2024

Thanks @alexandertsukanov for your suggestion and we can consider it for a future additional key shortcut.

You may also use shift+F12 for this, which is the default for VS Code itself.

You may also modify your VS Code settings via the keyboard shortcuts editor for setting key shortcuts you prefer. For adding a mouse click to a command's key shortcut, you may use the virtual key VK_LBUTTON.

Please let us know if this helped. Thanks.

@alexandertsukanov
Copy link
Author

@sid-srini Actually, I am using macOS. I'm not sure if that is possible here. Additionally, I found another issue related to the mouse keybinding:
microsoft/vscode#3130

So, any suggestions will be appreciated.

@sid-srini
Copy link
Member

@sid-srini Actually, I am using macOS. I'm not sure if that is possible here. Additionally, I found another issue related to the mouse keybinding: microsoft/vscode#3130

So, any suggestions will be appreciated.

Yes, you are right that VS Code on macOS does not seem to support virtual keys for mouse-binding.

  • The Keyboard Shortcut Editor also does not expose the cmd+click system hyperlink shortcut as a keyboard shortcut to allow editing the when clause for it.
  • Further, this particular shortcut has another potential clash on macOS with Multi-Cursor.

You may still continue to use shift+F12 or any other keyboard-only shortcut that you find more productive. The function keys on macOS are normally activated using the Fn key, but you may configure macOS System Preferences to use them (or show them in the Touch Bar) by default.

@sid-srini sid-srini added the enhancement New feature or request label Oct 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants