-
Notifications
You must be signed in to change notification settings - Fork 0
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
IntelliJ key shortcuts #34
Comments
Alright, since I have to use these shortcuts across Linux and Mac, Rust and Scala, and maintain sanity in the process, I decided to create my own shortcuts for the actions which are the most useful to me. Here I'll leave a list of them, together with how they are defined on Mac. The idea is that I need only 10-15 shortcuts and I can probably assign them to keys which start the name of the action, with Ctrl+Shift, or Alt-Shift as command keys (Ctrl+Alt is usually occupied already by something important). |
Ctrl+Shift+A - shows the list of possible actions. It stays like this. Except that, of course, its Cmd+Shift+A on Mac (and I'm going to change it to Ctrl+Shift). |
Extend selection: Ctrl+W (Eclipse), Alt+Up (Mac 10.5+). Changing to Alt+X |
Search for Class: Ctrl+Alt+T (Eclipse). Changing to Alt+C. |
Search for File: Ctrl+Alt+R (Eclipse). Changing to Alt+F. |
Go to Definition: F3 (Eclipse). Let it stay like this. |
Find Usages: Ctrl+G (Eclipse). Changing to Alt+U. |
Type Info: Alt+Equals (Eclipse). Changing to Alt+I. |
Do The Needful: Alt+Enter. Stays. |
Basic completion: Ctrl+Space (Eclipse). Stays. |
Commenting/uncommenting: Ctrl+Slash (Eclipse). Stays. |
Reformatting code: Ctrl+Alt+L (Eclipse) which interferes with Screen lock on Ubuntu, changing to Alt+L. |
Refactor This: Ctrl+Alt+Shift+T (Eclipse) changing to Ctrl+Shift+R. |
Optimize Imports: Shift+Alt+O (Mac), changing to Shift+Ctrl+I |
Find in Path: Shift+Cmd+F (Mac), changing to Shift+Ctrl+F |
Navigate Back: Alt-Left (Eclipse). Stays. |
Move a block of code up: Alt+Up (Eclipse). Changing to Shift+Alt+Up. I find moving lines of code much more useful than moving whole blocks. If I want to move a function or a data structure, I can easily select it with a mouse and I have much more control over it this way. And moving single lines is one of the most common things I do during refactoring. |
Ha :)
In my career I usedVisual Studio, Eclipse, IntelliJ on Linux and IntelliJ on Mac OS. As a result, I have remembering key shortcuts for the most popular actions, because apparently designes of each IDE had different ideas, and I suspect that sometimes they just pushed keys at random. The "Cmd/Meta" sign on Macs is also very confusing to me. So, as a part of learning Rust and writing this project I want to finally create and memorize a set of the most important shortcuts I'm going to use them in Intellij in on my projects from now on.
One more problem: Mac OS assigns special character to certain "Left Alt + something" combinations.
Alt+D: ∂
Alt+C: ć
and so on. I had to disable Left Alt from doing anything: https://stackoverflow.com/questions/11876485/how-to-disable-typing-special-characters-when-pressing-option-key-in-mac-os-x
Search for a Class, Create a Class, and Type Info does not work for Rust - only Scala.
The text was updated successfully, but these errors were encountered: