michael
michael

Reputation: 110510

Eclipse equivalent command in Intellij

I am switch to Intellij from Eclipse. I would like to know if/what is the equivalent in Intellij

  1. Quick Fix (Control-1 in eclipse)
  2. In editor for the file which I open, navigate the Project/Directory window to show the same file?
  3. Highlight a section of code and do 'correct indentation'

Upvotes: 21

Views: 9535

Answers (3)

Rob Bygrave
Rob Bygrave

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

Wesley Womack
Wesley Womack

Reputation: 343

If you use a Mac:

1: Option + Enter

2: Option + F1, select "1. Project view"

3: Command + Option + L

Upvotes: 5

Tomasz Nurkiewicz
Tomasz Nurkiewicz

Reputation: 340708

Ad. 1: Alt + Enter

Ad. 2: Alt + F1, select "1. Project view"

Ad. 3: Ctrl + Alt + L

Upvotes: 16

Related Questions