From eclipse to idea

Time:2020-11-6

cause

Recently, I changed my job, and the new company used idea for development. Before using Win + eclipse, I suddenly switched to MBP + idea. I didn’t know what key my finger was on. I would like to make a record in the process of transformation.

Some good learning articles are collected
Migrating idea official website from eclipse to idea
A tutorial from geek College

The most frequently used shortcut key

search

  • Global search shift * 2 (click shift twice)

  • Type search command + O

  • Resource file search Shift + Command + O

  • This search will bring up a list of results. You can search for everything by “Shift + Command + F”

Jump

  • Go to definition (type, method) Command + B

  • Go to implement option + Command + B

  • Backward forward command + []

  • Find the next one. After the text is specified, command + G is reversed and shift is added

  • Show in option + F1

repair

  • Code formatting option + Command + L

  • Optimize import Ctrl + option + O

  • Delete current line command + delete

  • Quick positioning error F2

  • Quick fix option + ENTER

Presentation of some views

  • outline command + F12

  • Inheritance view Ctrl + H

  • Project view Command + 1

  • Use the terminal option + F12 directly in it

  • Maximize current window shift + Command + F12

Compile, run, debug

  • Compile Command + F9

  • Run Ctrl + R

  • Debug Ctrl + D

restructure

  • Renamed Shift + F6

  • Extraction method option + Command + M

  • Extract variable option + Command + V

Operation undo

  • Undo command + Z

  • Redo undo Shift + Command + Z