Reputation: 110510
I am switch to Intellij from Eclipse. I would like to know if/what is the equivalent in Intellij
Upvotes: 21
Views: 9535
Reputation: 4021
I'm unsatified with the answer that ALT + Enter is a match for CTRL + 1.
CTRL + 1 provides shortcuts to generate code depending on what you are doing. For example, if you are on a method it can generate code for a local field based on the return type.
CTRL + ALT + V ... generates a local variable based on the return type of a method which I'd say is one my main uses of CTRL + 1.
Upvotes: 6
Reputation: 343
If you use a Mac:
1: Option + Enter
2: Option + F1, select "1. Project view"
3: Command + Option + L
Upvotes: 5
Reputation: 340708
Ad. 1: Alt + Enter
Ad. 2: Alt + F1, select "1. Project view"
Ad. 3: Ctrl + Alt + L
Upvotes: 16