Skip to content

Latest commit

 

History

History
45 lines (34 loc) · 1.92 KB

ide-commands-shortcuts.md

File metadata and controls

45 lines (34 loc) · 1.92 KB

IDE Shortcuts & Commands

Everyday commands: Intellij, Eclipse & Visual Studio

Searching, Finding & Navigation

Action Intellij Eclipse Visual Studio
Search everywhere Double shift
Recent files Ctrl + e
Go to a line Ctrl + g Ctrl + l Ctrl + g
Navigate to definition (e.g., to a method) Ctrl + b Ctrl + (left) click
F3
F12
Navigate to implementation Ctrl + Alt + b Ctrl + F12 (Opens impl, if its an interface)
Peek definition Alt + F12
Search and navigate to current class method Ctrl + F12 (then type and select method) Ctrl + O (then type method name) Ctrl + , (then type method name)
Go to last edit location Ctrl + Shift + backspace
Quick info (about a variable or type) Ctrl + q Place cursor over a variable
Show suggestions to fix a problem Ctrl + 1 Alt + Shift + F10 / Ctrl + .
Add packages/namespaces
Search files containing a given string Ctrl + Shift + f
Search for a file with a given name Ctrl + Shift + n
Show current file structure/outline Ctrl + F12 Ctrl + o

Editing

Action Intellij Eclipse Visual Studio
Delete a line Ctrl + y Ctrl + d Ctrl + l
Toggle line comments ctrl + / Ctrl + /
Rename Shift + F6
Format code Ctrl + Alt + l (l for line) Ctrl + Shift + f
Generate getters/setters Alt + Insert Alt + Shift + s
Show suggestions for fixing a problem Alt + Enter Ctrl + 1

IntelliJ

  • Showing outline/structure of a class: Alt+7
  • Changing display and view modes: Alt+` (Windows?), Ctrl + ` (Linux)
  • Cheatsheet

Atom