Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse equivalent command in Intellij

Tags:

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'
like image 317
michael Avatar asked Jan 13 '12 22:01

michael


People also ask

How do I act like an Eclipse in IntelliJ?

Import an Eclipse project to IntelliJ IDEA To do this, click Open on the Welcome Screen or select File | Open in the main menu. IntelliJ IDEA automatically detects Eclipse projects located on your computer and places them in the dedicated node right on the Welcome screen.

How do I get Eclipse shortcuts in IntelliJ?

Configure keyboard shortcuts IntelliJ IDEA includes several predefined keymaps and lets you customize frequently used shortcuts. To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap. IntelliJ IDEA automatically suggests a predefined keymap based on your environment.

Can I use IntelliJ instead of Eclipse?

A: Eclipse is better than IntelliJ for large and complex projects. This is because it indexes the entire project during startup. IntelliJ IDEA, however, outshines Eclipse when it comes to dealing with existing projects. In this case, IntelliJ IDEA delivers better performance than Eclipse.

What is Ctrl Shift O in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.


2 Answers

Ad. 1: Alt + Enter

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

Ad. 3: Ctrl + Alt + L

like image 53
Tomasz Nurkiewicz Avatar answered Oct 05 '22 23:10

Tomasz Nurkiewicz


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.

like image 21
Rob Bygrave Avatar answered Oct 06 '22 01:10

Rob Bygrave