Intellij Idea Shortcuts


 Here is an list of Intellij Idea shortcuts,


General:

Ctrl + Shift + A: Find Action (search for any action/command).

Ctrl + N: Go to Class.

Ctrl + Shift + N: Go to File.

Ctrl + Shift + Alt + N: Go to Symbol.

Ctrl + E: Recent Files popup.

Ctrl + Shift + E: Recent Edited Files popup.

Ctrl + F12: File Structure popup.


Editing:

Ctrl + Space: Basic code completion.

Ctrl + Shift + Enter: Complete current statement.

Ctrl + P: Parameter info (within method call arguments).

Ctrl + Q: Quick Documentation lookup.

Ctrl + J: Insert Live Template.

Ctrl + O: Override methods.

Ctrl + I: Implement methods.

Ctrl + Alt + T: Surround with (if, try/catch, etc.).

Ctrl + /: Toggle line comment.

Ctrl + Shift + /: Toggle block comment.

Ctrl + W: Extend selection.


Navigation:

Ctrl + B: Go to declaration.

Ctrl + F12: File Structure popup.

Alt + F7: Find usages.

Ctrl + Alt + F7: Show usages.

Ctrl + Shift + F7: Highlight usages in file.

Alt + Right/Left: Navigate forward/backward.

Ctrl + Shift + Backspace: Go to last edit location.


Refactoring:

Ctrl + Alt + V: Introduce Variable.

Ctrl + Alt + F: Introduce Field.

Ctrl + Alt + C: Introduce Constant.

Ctrl + Alt + P: Introduce Parameter.

Ctrl + Alt + M: Extract Method.

Ctrl + Alt + L: Reformat code.

Ctrl + Alt + O: Optimize imports.


Debugging:

F8: Step over.

F7: Step into.

Shift + F7: Smart step into.

Shift + F8: Step out.

Alt + F9: Run to cursor.

Alt + F8: Evaluate expression.

Ctrl + F8: Toggle breakpoint.


Git Integration:

Ctrl + K: Commit changes.

Ctrl + Shift + K: Push commits.

Ctrl + D: Show Diff (file changes).

Ctrl + Alt + Z: Revert changes.