Shortcuts: Intellij | Mac | Chrome

Let's stop using our mouses!

Intellij Official Shortcuts

Video series with examples

General Mac Shortcuts

Chrome Shortcuts

Intellij

Text Navigation

⌥ + ← : Move cursor one word to the left

⌥ + → : Move cursor one word to the right

⌘ + ← : Move cursor to beginning of line

⌘ + → : Move cursor to end of line

Fn + ↑ : Move up one page

Fn + ↓ : Move down one page

Fn + ⌘ + ← : Move to beginning of file

Fn + ⌘ + → : Move to end of file

Editing and Working With Code

Camel Hump

Type in Class.TLE and Intellij will show method with camel case TLE.

Move Line and Statements

Shift + ⌥ + ↑ : Move current line up

Shift + ⌥ + ↓ : Move current line down

Shift + ⌘ + ↑ : Move method up

Shift + ⌘ + ↓ : Move method down

⌘ + D : Duplicate line

⌘ + ⌫ : Delete line

⌘ + P : View suggested parameters of selected method

⌘ + / : Comment or uncomment current selection

⌥ + ⌘ + / : Block comment or uncomment current selection

⌘ + - : Collapse current code block

⌘ + + : Expand current code block

Code Navigation

⌘ + [ : Navigate to previous location

⌘ + ] : Navigate to next location

⌘ + O : Navigate to a class

  • Partial Match
  • Camel Humps
  • Wildcard Search

⌥ + ⌘ + O : Navigate to a symbol

Shift + ⌘ + O : Navigate to file

  • type file name or file path
  • type folder name with flash at the end to look up folders

Shift + ⌘ + A : Navigate to Action

Double-Shift : Search Everywhere

  • Tab : Move between sections in search everywhere window

Search tab placement to turn off tabs

⌘ + E : Recent files

  • Start typing for search

Shift + ⌘ + E : Recently edited files

⌘ + Shift + ] : Focus move to the tab to the right

⌘ + Shift + ] : Focus move to the tab to the left

Code selection

Shift + ← Shift + → : Select one character at a time

Shift + ⌥ + ← Shift + ⌥ + → : Select one word at a time

Shift + ⌘ + ← Shift + ⌘ + → : Select everything from cursor to beginning or end of current line

⌥ + ↑ : Extend selection

⌥ + ↓ : Shrink selection

Code Completion

Shift + ^ + Space : Invoke smart code Completion

^ + Space twice : Display static method suggestion list

⌥ + Enter : Add a static import

⌘ + J : Display postfix completion suggestion list

Type in var.XXX

  • nn / null : Checks expression to be null
  • notnull : Checks expression to be non-null
  • synchronized : Produces synchronization statement
  • try : Inserts try-catch block
  • for : Iterates over enumerable collection
  • fori : Iterates with index over collection
  • forr : Iterates with index in reverse order

Code Generation

⌘ + N : Display Generate menu

Version Control

⌘ + K : Commit project to VCS

⌘ + D : Show diff of files in Commit Changes Dialog

⌥ + ⌘ + Z : Revert file in Commit Changes Dialog

^ + V : Display VCS operations windows

Code Style

⌥ + ⌘ + L : Reformat code

^ + ⌥ + O : Optimize imports

  • Enable 'Optimize imports on the fly' to automatically optimize imports after each change

⌥ + ⌘ + ↓ : Navigate to next compilation error

⌥ + ⌘ + ↑ : Navigate to previous compilation error

ESC : Move cursor to editor

Refactorings

^ + T : Refactor this

Shift + F6 : Rename

⌘ + ⌥ + M : Extract method

⌘ + ⌥ + V : Extract variable

Settings

⌘ + , : Preferences

⌘ + Q : Quit

Running and Building Your application

⌘ + F9 : Build application

^ + ⌥ + R : Run

Other

⌥ + F7 : Find Usages

Mac

General

⌘ + C : Copy

⌘ + V : Paste

⌘ + X : Cut

⌘ + Z : Undo

⌘ + A : Select all

Fn + ⌫ : Delete character in front of cursor

⌘ + F : Find

⌘ + G : Find Again: Find the next occurrence of the item previously found

⌘ + H : Hide current window

⌘ + ⌥ + H : Hide all other apps

⌘ + M : Minimize front app

⌘ + ⌥ + M : Minimize all other apps

⌘ + O : Open the selected item

⌘ + P : Print

⌘ + S : Save

⌘ + T : Open a new tab

⌘ + W : Close the front window

⌘ + ⌥ + W : Close all windows of the app

Tab : Move to next selection in window

Shift + Tab : Move to previous selection in window

Tab : Move the selection one tab stop to the right

Shift + Tab : Move the selection one tab stop to the left

Shift + ⌘ + 3 : Screenshot fullscreen

Shift + ⌘ + 4 : Screenshot an area

⌘ + TAB : Switches applications

⌘ + ⌥ + Power Button : Put Mac to sleep

Shift + ⌘ + Q : Log out

Chrome

Tab and Windows Shortcuts

⌘ + N : Open a new windows

⌘ + Shift + N : Open a new window in incognito mode

⌘ + T : Open a new tab, and jump to it

⌘ + Shift + T : Reopen last closed tab, and jump to it

⌘ + ⌥ + → : Switch to next open tab

⌘ + ⌥ + ← : Switch to pervious open tab

⌘ + 1 through ⌘ + 8 : Jump to a specific tab

⌘ + 9 : Jump to last tab

⌘ + ] ⌘ + ⌥ + → : Open next page in your browsing history

⌘ + [ ⌘ + ⌥ + ← : Open previous page in your browsing history

⌘ + W : Close the current tab or pop-up

⌘ + Shift + W : Close the current window

⌘ + m : Minimize the window

⌘ + H : Hide Google Chrome

⌘ + Q : Quit Google Chrome

Google Chrome Feature Shortcuts

⌘ + Shift + B : Show or hide Bookmarks Bar

⌘ + ⌥ + B : Open the Bookmarks Manager

⌘ + , : Open Settings in a new tab

⌘ + Y: Open the history in a new tab

⌘ + Shift + J : Open the Downloads in a new tab

⌘ + ⌥ + I : Open Developer Tools

⌘ + Shift + ⌫ : Open the Clear Browsing Data options

Address Bar Shortcuts

Type a web address + ⌘ + Enter : Open the website in new tab

⌘ + I : Jump to the address bar

Webpage Shortcuts

⌘ + R : Reload current page

⌘ + Shift + R : Reload current page, ignoring cached content

⌘ + D : Save your current webpage as a bookmark

⌘ + ^ + F : Turn full-screen mode on or Official

⌘ and + : Make everything on the page bigger

⌘ and - : Make everything on the page smaller

⌘ + 0 : Return everything on the page to the default size

Space : Scroll down, one screen at a time

Shift + Space : Scroll up, one screen at a time

⌘ + ⌥ + F : Search the web

⌘ + Shift + H : Open your home page in the current tab

Mouse Shortcuts

⌘ + Click a link : Open a link in new background tab

⌘ + Shift + Click a link : Open a link, and jump to it

Shift + Click a link : Open a link in a new window