Skip to content

Instantly share code, notes, and snippets.

@kameit00
Last active February 22, 2016 22:14
Show Gist options
  • Save kameit00/a3671ce29be13d23a0af to your computer and use it in GitHub Desktop.
Save kameit00/a3671ce29be13d23a0af to your computer and use it in GitHub Desktop.
IntelliJ Shortcuts (Presentation IntelliJ IDEA - Tips and Tricks - Hadi Hariri)
Source: Presentation of Hadi Hariri (https://www.parleys.com/tutorial/intellij-idea-tips-tricks)
Set Keymap in Preferences to: Mac OS 10.5+
Recently opened Files --> ⌘E
Recently Edited Files --> ⇧⌘E
Hide views (e.g. Project) --> ⇧⎋ (⇧ escape-key)
In all Navigations, you can use Camel Case (e.g. FIS for FileInputStream)
Navigate - Class --> ⌘O
Navigate - File --> ⇧⌘O
In search result windows --> ClassName:40 brings you to line 40
/foldername navigates to folders
patterns, as search terms, are possible
Navigate - Symbol --> ⌥⌘O
Navigate - File Structure --> ⌘F12
Navigate between opened Files --> ⌥⌘← or ⌥⌘→
Search Everywhere --> Double ⇧
With tab you can navigate the sections
With ← you can navigate previous searches
Searches also menus
Searches also Run Configurations (alternate Run/Debug by pressing ⇧)
Line Comment (on german keyboard) --> ⌘-
Block Comment (on german keyboard) --> ⇧⌘-
Toggle Project View --> ⌘1
To search in this view, just type
To navigate the search results, press ⇥ (Tab)
Structure --> ⌘7
New File --> ⌘N or ⌃⌥N (depends on where you call it)
Show Navigation Bar --> ⌘↑
Show definition in popup --> ⌘Y
If all views are hidden, to show them --> Double ⌘ (hold the second press to ⌘ and click the view you want)
For a second monitor, open a new window --> ⇧F4
Context aware selection of text --> ⌥↑ or ⌥↓
Move Text --> ⇧⌘↑ or ⇧⌘↓
Clipboard history --> ⇧⌘V
Resize View --> ⇧⌘← or ⇧⌘→
Block Selection with Mouse --> ⌥ mouse selection
Multi Cursor --> ⇧⌥click
Add Selection for Next Occurrence --> Sele ct a word and press ⌃G
to select all occurrences --> ⌃⌘G
HTML editing
#myclass>ul>li*5 then ⇥ to expand to HTML code
Completion --> ⌃Space
Smart Completion --> ⇧⌃Space (only shows the completion types that are valid/usable)
PopUp for Method Parameter Info --> ⌘P
Postfix completion - e.g. variable.notnull --> expands with ⇥ to
if(variable != null) {
[cursor_position]
}
Find Action --> ⇧⌘A
Open Terminal --> ⌥F12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment