با سلام.

اردیبهشت ماه بر خلاف تصور خودم ماهی سراسر دردسر بود و به هیچ وجه نتونستم چیزی آپ کنم.

اما ازونجایی که به شخصه استفاده از میانبر ها رو دوست دارم و یادگیریشون رو برای خودم خیلی مهم و ضروری میدونم.

و همین خاطر تصمیم گرفتم مطلبی به جهت یادآوری (و نه معرفی و أموزش) بیارم.

شرح کامل این میانبر های IntelliJ رو داخل این فایل ببینید .

و اما کلید ها و نماد های اونا :

⌘ = Command Key

⌥ = Option Key

⇧ = Shift Key

⌃ = Control Key

 

Description

Windows/Linux

Mac

General

Save all

Ctrl + S

⌘ + S

Synchronize

Ctrl + Alt + Y

⌘ + ⌥ + Y

Maximize/minimize editor

Ctrl + Shift + F12

⌃ + ⌘ + F12

Add to favorites

Alt + Shift + F

⌥ + ⇧ + F

Inspect current file with current profile

Alt + Shift + I

⌥ + ⇧ + I

Quick switch scheme

Ctrl + ` (backquote)

⌃ + ` (backquote)

Open settings dialogue

Ctrl + Alt + S

⌘ + , (comma)

Open project structure dialog

Ctrl + Alt + Shift + S

⌘ + ; (semicolon)

Switch between tabs and tool window

Ctrl + Tab

⌃ + Tab

Navigating and Searching Within Studio

Search everything (including code and menus)

Press Shift twice

Press ⇧ twice

Find

Ctrl + F

⌘ + F

Find next

F3

⌘ + G

Find previous

Shift + F3

⌘ + ⇧ + G

Replace

Ctrl + R

⌘ + R

Find action

Ctrl + Shift + A

⌘ + ⇧ + A

Search by symbol name

Ctrl + Alt + Shift + N

⌘ + ⌥ + O

Find class

Ctrl + N

⌘ + O

Find file (instead of class)

Ctrl + Shift + N

⌘ + ⇧ + O

Find in path

Ctrl + Shift + F

⌘ + ⇧ + F

Open file structure pop-up

Ctrl + F12

⌘ + F12

Navigate between open editor tabs

Alt + Right/Left Arrow

⌃ + Right/Left Arrow

Jump to source

F4 / Ctrl + Enter

F4 / ⌘ + Down Arrow

Open current editor tab in new window

Shift + F4

⇧ + F4

Recently opened files pop-up

Ctrl + E

⌘ + E

Recently edited files pop-up

Ctrl + Shift + E

⌘ + ⇧ + E

Go to last edit location

Ctrl + Shift + Backspace

⌘ + ⇧ + Backspace

Close active editor tab

Ctrl + F4

⌘ + W

Return to editor window from a tool window

Esc

Esc

Hide active or last active tool window

Shift + Esc

⇧ + Esc

Go to line

Ctrl + G

⌘ + L

Open type hierarchy

Ctrl + H

⌃ + H

Open method hierarchy

Ctrl + Shift + H

⌘ + ⇧ + H

Open call hierarchy

Ctrl + Alt + H

⌃ + ⌥ + H

Writing Code

Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class)

Alt + Insert

⌘ + N

Override methods

Ctrl + O

⌃ + O

Implement methods

Ctrl + I

⌃ + I

Surround with (if...else / try...catch / etc.)

Ctrl + Alt + T

⌘ + ⌥ + T

Delete line at caret

Ctrl + Y

⌘ + Backspace

Collapse/expand current code block

Ctrl + minus/plus

⌘ + minus/plus

Collapse/expand all code blocks

Ctrl + Shift + minus/plus

⌘ + ⇧ + minus/plus

Duplicate current line or selection

Ctrl + D

⌘ + D

Basic code completion

Ctrl + Space

⌃ + Space

Smart code completion (filters the list of methods and variables by expected type)

Ctrl + Shift + Space

⌃ + ⇧ + Space

Complete statement

Ctrl + Shift + Enter

⌘ + ⇧ + Enter

Quick documentation lookup

Ctrl + Q

⌃ + J

Show parameters for selected method

Ctrl + P

⌘ + P

Go to declaration (directly)

Ctrl + B or Ctrl + Click

⌘ + B or ⌘ + Click

Go to implementations

Ctrl + Alt + B

⌘ + Alt + B

Go to super-method/super-class

Ctrl + U

⌘ + U

Open quick definition lookup

Ctrl + Shift + I

⌘ + Y

Toggle project tool window visibility

Alt + 1

⌘ + 1

Toggle bookmark

F11

F3

Toggle bookmark with mnemonic

Ctrl + F11

⌥ + F3

Comment/uncomment with line comment

Ctrl + /

⌘ + /

Comment/uncomment with block comment

Ctrl + Shift + /

⌘ + ⇧ + /

Select successively increasing code blocks

Ctrl + W

⌥ + Up

Decrease current selection to previous state

Ctrl + Shift + W

⌥ + Down

Move to code block start

Ctrl + [

⌥ + ⌘ + [

Move to code block end

Ctrl + ]

⌥ + ⌘ + ]

Select to the code block start

Ctrl + Shift + [

⌥ + ⌘ + ⇧ + [

Select to the code block end

Ctrl + Shift + ]

⌥ + ⌘ + ⇧ + ]

Delete to end of word

Ctrl + Delete

⌥ + Delete

Delete to start of word

Ctrl + Backspace

⌥ + Backspace

Optimize imports

Ctrl + Alt + O

⌃ + ⌥ + O

Project quick fix (show intention actions and quick fixes)

Alt + Enter

⌥ + Enter

Reformat code

Ctrl + Alt + L

⌘ + ⌥ + L

Auto-indent lines

Ctrl + Alt + I

⌃ + ⌥ + I

Indent/unindent lines

Tab/Shift + Tab

Tab/⇧ + Tab

Smart line join

Ctrl + Shift + J

⌃ + ⇧ + J

Smart line split

Ctrl + Enter

⌘ + Enter

Start new line

Shift + Enter

⇧ + Enter

Next/previous highlighted error

F2 / Shift + F2

F2 / ⇧ + F2

Build and Run

Build

Ctrl + F9

⌘ + F9

Build and run

Shift + F10

⌃ + R

Apply changes (with Instant Run)

Ctrl + F10

⌃ + ⌘ + R

Debugging

Debug

Shift + F9

⌃ + D

Step over

F8

F8

Step into

F7

F7

Smart step into

Shift + F7

⇧ + F7

Step out

Shift + F8

⇧ + F8

Run to cursor

Alt + F9

⌥ + F9

Evaluate expression

Alt + F8

⌥ + F8

Resume program

F9

⌘ + ⌥ + R

Toggle breakpoint

Ctrl + F8

⌘ + F8

View breakpoints

Ctrl + Shift + F8

⌘ + ⇧ + F8

Refactoring

Copy

F5

F5

Move

F6

F6

Safe delete

Alt + Delete

⌘ + Delete

Rename

Shift + F6

⇧ + F6

Change signature

Ctrl + F6

⌘ + F6

Inline

Ctrl + Alt + N

⌘ + ⌥ + N

Extract method

Ctrl + Alt + M

⌘ + ⌥ + M

Extract variable

Ctrl + Alt + V

⌘ + ⌥ + V

Extract field

Ctrl + Alt + F

⌘ + ⌥ + F

Extract constant

Ctrl + Alt + C

⌘ + ⌥ + C

Extract parameter

Ctrl + Alt + P

⌘ + ⌥ + P

Version Control / Local History

Commit project to VCS

Ctrl + K

⌘ + K

Update project from VCS

Ctrl + T

⌘ + T

View recent changes

Alt + Shift + C

⌥ + ⇧ + C

Open VCS popup

Alt + ` (backquote)

Ctrl + V