100 Important IntelliJ Shortcuts (Mac + Windows) | Improve Your Performance

Amandeep Singh
8 min readJan 10, 2024

--

Using IDE improve the development process with all the help provided by it.

But if we know some important keyboard shortcuts, using them will really help us in using the IDE to its full potential.

Here is a list of 100 Shortcuts you will ever need while using IntelliJ IDE.

Note*: These are the default bindings, you can anytime change these based on your own preferences

1 -> Ctrl + S ::: Cmd + S ::: Save the current file.
2 -> Ctrl + C ::: Cmd + C ::: Copy the selected text or element.
3 -> Ctrl + X ::: Cmd + X ::: Cut the selected text or element.
4 -> Ctrl + V ::: Cmd + V ::: Paste the clipboard content.
5 -> Ctrl + Z ::: Cmd + Z ::: Undo the last action.
6 -> Ctrl + Y ::: Cmd + Y ::: Redo the previously undone action.
7 -> Ctrl + F ::: Cmd + F ::: Open the Find dialog for searching within the file.
8 -> Ctrl + R ::: Cmd + R ::: Open the Replace dialog for search and replace.
9 -> Ctrl + N ::: Cmd + O ::: Open a new class.
10 -> Ctrl + Shift + N ::: Cmd + Shift + O ::: Open a file by name.
11 -> Ctrl + Shift + F ::: Cmd + Shift + F ::: Search for a text string in the entire project.
12 -> Ctrl + Alt + L ::: Cmd + Alt + L ::: Reformat the code in the current file.
13 -> Ctrl + D ::: Cmd + D ::: Duplicate the current line or selection.
14 -> Ctrl + Space ::: Cmd + Space ::: Trigger basic code completion.
15 -> Ctrl + Shift + Space ::: Cmd + Shift + Space ::: Trigger smart code completion based on the context.
16 -> Ctrl + / ::: Cmd + / ::: Comment or uncomment the selected lines of code.
17 -> Ctrl + W ::: Alt + Cmd + ↑ ::: Extend the current selection.
18 -> Ctrl + Shift + W ::: Alt + Cmd + ↓ ::: Shrink the current selection.
19 -> Ctrl + Alt + T ::: Ctrl + T ::: Surround the selected code with a construct (if, try/catch, etc.).
20 -> Ctrl + F12 ::: Cmd + F12 ::: Show the file structure and navigate to a specific element.
21 -> Ctrl + Alt + S ::: Cmd + , ::: Open the Settings dialog.
22 -> Ctrl + Shift + A ::: Cmd + Shift + A ::: Open the Find Action dialog to search for and execute actions.
23 -> Alt + Enter ::: Alt + Enter ::: Show intention actions and quick fixes for the current context.
24 -> Ctrl + Q ::: Ctrl + J ::: Display quick documentation for the selected element.
25 -> Ctrl + P ::: Cmd + P ::: Display parameter information for the current method or constructor.
26 -> Ctrl + Alt + V ::: Cmd + Alt + V ::: Introduce a variable for the selected expression.
27 -> Ctrl + Alt + F ::: Cmd + Alt + F ::: Introduce a field for the selected expression.
28 -> Ctrl + Alt + C ::: Cmd + Alt + C ::: Introduce a constant for the selected expression.
29 -> Ctrl + Alt + M ::: Cmd + Alt + M ::: Extract the selected code into a new method.
30 -> Ctrl + Alt + N ::: Cmd + Alt + N ::: Inline the selected variable or method.
31 -> Ctrl + F2 ::: Cmd + F2 ::: Stop the currently running process.
32 -> Shift + F10 ::: Ctrl + R ::: Run the active configuration or main class.
33 -> Shift + F9 ::: Ctrl + D ::: Debug the active configuration or main class.
34 -> Alt + Shift + F10 ::: Ctrl + Shift + R ::: Run the active configuration with a specified context.
35 -> Alt + Shift + F9 ::: Ctrl + Shift + D ::: Debug the active configuration with a specified context.
36 -> Ctrl + Alt + F12 ::: Cmd + Alt + F12 ::: Toggle the maximize state of the tool window.
37 -> Ctrl + E ::: Cmd + E ::: Open the Recent Files popup for quick file navigation.
38 -> Ctrl + Shift + E ::: Cmd + Shift + E ::: Open the Recently Edited Files popup.
39 -> Ctrl + F4 ::: Cmd + W ::: Close the active editor tab.
40 -> Ctrl + Shift + F4 ::: Cmd + Shift + W ::: Close all open editor tabs.
41 -> Ctrl + Tab ::: Cmd + ` ::: Switch between open editor tabs.
42 -> Ctrl + Alt + Left ::: Cmd + [ ::: Navigate back in the editor history.
43 -> Ctrl + Alt + Right ::: Cmd + ] ::: Navigate forward in the editor history.
44 -> Ctrl + F7 ::: Cmd + F7 ::: Find usages of the selected element.
45 -> Ctrl + Shift + F7 ::: Cmd + Shift + F7 ::: Highlight usages of the selected element.
46 -> Alt + F7 ::: Cmd + F7 ::: Show usages of the selected element.
47 -> Ctrl + Shift + F12 ::: Cmd + Shift + F12 ::: Toggle the tool window for the active editor.
48 -> Alt + 1 ::: Cmd + 1 ::: Open and focus on the Project tool window.
49 -> Alt + 7 ::: Cmd + 7 ::: Open and focus on the Structure tool window.
50 -> Alt + 9 ::: Cmd + 9 ::: Open and focus on the Version Control tool window.
51 -> Alt + F1 ::: Cmd + F1 ::: Open the “Select In” popup for various views.
52 -> Ctrl + Alt + Shift + S ::: Cmd + ; ::: Open the Project Structure dialog.
53 -> Ctrl + Shift + A ::: Cmd + Shift + A ::: Open the Find Action dialog to search for and execute actions.
54 -> Ctrl + Alt + Shift + A ::: Cmd + Alt + A ::: Add the current file or selection to favorites.
55 -> Ctrl + Alt + Shift + S ::: Cmd + Alt + Shift + S ::: Save all modified settings and configurations.
56 -> Alt + Insert ::: Cmd + N ::: Generate code (constructor, getter, setter, etc.).
57 -> Ctrl + O ::: Cmd + O ::: Override methods in the current class.
58 -> Ctrl + I ::: Cmd + I ::: Implement methods from the interface in the current class.
59 -> Ctrl + U ::: Cmd + U ::: Navigate to the super method or class.
60 -> Ctrl + H ::: Cmd + H ::: View the type hierarchy of the selected class or interface.
61 -> Ctrl + Shift + H ::: Cmd + Shift + H ::: View the method hierarchy of the selected class or interface.
62 -> Ctrl + Alt + H ::: Cmd + Alt + H ::: View the call hierarchy of the selected method or class.
63 -> F2 ::: F2 ::: Navigate to the next highlighted error or warning in the file.
64 -> Shift + F2 ::: Shift + F2 ::: Navigate to the previous highlighted error or warning in the file.
65 -> F4 ::: F4 ::: Edit the source code of the selected element.
66 -> Alt + Home ::: Cmd + ↑ ::: Jump to the navigation bar at the top of the editor.
67 -> Ctrl + B ::: Cmd + B ::: Navigate to the declaration of the selected symbol.
68 -> Ctrl + Alt + B ::: Cmd + Alt + B ::: Navigate to the implementation(s) of the selected symbol.
69 -> Ctrl + Shift + I ::: Cmd + Y ::: Open quick definition popup for the selected symbol.
70 -> Ctrl + ] ::: Cmd + ] ::: Move the cursor to the end of the current code block.
71 -> Ctrl + [ ::: Cmd + [ ::: Move the cursor to the start of the current code block.
72 -> Ctrl + F8 ::: Cmd + F8 ::: Toggle a breakpoint at the current line.
73 -> Ctrl + Shift + F8 ::: Cmd + Shift + F8 ::: View and manage breakpoints in the Breakpoints dialog.
74 -> Ctrl + Alt + F8 ::: Cmd + Alt + F8 ::: Evaluate expressions during debugging.
75 -> Ctrl + Alt + Shift + F8 ::: Cmd + Alt + Shift + F8 ::: Inspect and modify variable values during debugging.
76 -> Ctrl + Shift + I ::: Cmd + I ::: Show a quick definition popup for the selected symbol.
77 -> Ctrl + Alt + Space ::: Cmd + Alt + Space ::: Trigger class name completion for the current location.
78 -> Ctrl + J ::: Cmd + J ::: Insert a live template at the current cursor position.
79 -> Ctrl + Shift + J ::: Cmd + Shift + J ::: Perform a smart line join for the current line and the line below.
80 -> Ctrl + Enter ::: Cmd + Enter ::: Perform a smart line split at the current cursor position.
81 -> Ctrl + Alt + Enter ::: Option + Enter ::: Show intention actions and quick fixes for the current context.
82 -> Alt + Ins ::: Cmd + N ::: Generate code (constructor, getter, setter, etc.).
83 -> Ctrl + W ::: Cmd + W ::: Increase the selection successively.
84 -> Ctrl + Shift + W ::: Cmd + Shift + W ::: Decrease the selection successively.
85 -> Ctrl + Shift + U ::: Cmd + U ::: Toggle the case for the word at the caret or selected block.
86 -> Alt + F3 ::: Cmd + G ::: Find the next occurrence of the selected word in the file.
87 -> Alt + Shift + F3 ::: Cmd + Shift + G ::: Find the previous occurrence of the selected word in the file.
88 -> Ctrl + Alt + Shift + S ::: Cmd + Alt + Shift + S ::: Save the current file as a template for future use.
89 -> Ctrl + F6 ::: Cmd + F6 ::: Change the signature of the selected method or class.
90 -> Ctrl + Alt + Shift + T ::: Cmd + Alt + Shift + T ::: Refactor the current code using various options.
91 -> Ctrl + Shift + Alt + T ::: Cmd + Shift + Alt + T ::: Surround the selected code with a specified construct.
92 -> Ctrl + / ::: Cmd + / ::: Comment or uncomment the selected lines of code.
93 -> Ctrl + W ::: Cmd + W ::: Increase the selection successively.
94 -> Ctrl + Shift + W ::: Cmd + Shift + W ::: Decrease the selection successively.
95 -> Ctrl + D ::: Cmd + D ::: Duplicate the current line or selection.
96 -> Ctrl + Space ::: Cmd + Space ::: Trigger basic code completion.
97 -> Ctrl + Shift + Space ::: Cmd + Shift + Space ::: Trigger smart code completion based on the context.
98 -> Ctrl + Alt + Left ::: Cmd + [ ::: Navigate back in the editor history.
99 -> Ctrl + Alt + Right ::: Cmd + ] ::: Navigate forward in the editor history.
100 -> 101 -> Ctrl + Shift + A ::: Cmd + Shift + A ::: Open the “Find Action” dialog to search for and execute actions.

I hope you find this article useful.

You can clap for the article if you like it and Subscribe to Lazy Programmer on YouTube.

If you want to learn Core Java from the beginning and that too without any cost, do checkout below Playlists:

Core Java

Spring Framework

Java 8

Java Interview Preparation

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Amandeep Singh
Amandeep Singh

Written by Amandeep Singh

Love Programming & Love to Share the Knowledge with Others

No responses yet

Write a response