Show Menu
Cheatography

Java and C sharp Development Cheat Sheet (DRAFT) by

IntelliJ and Visual Studio

This is a draft cheat sheet. It is a work in progress and is not finished yet.

IntelliJ - General

Ctrl+S­hift+A
Find action
Shift+F10
Run
Shift+F9
Debug
Ctrl+M­ous­eover
Brief info
Ctrl+Q
Quick docume­ntation lookup
Ctrl+N
Go to class
Ctrl+S­hift+N
Go to file
Ctrl+N­ump­ad+/-
Expand­/Co­llapse code block
Ctrl+S­hif­t+N­ump­ad+/-
Expand­/Co­llapse all

IntelliJ - Editing and Automation

Ctrl+S­hif­t+Enter
Complete statement
Shift+­Enter
Start new line
Ctrl+S­hif­t+Space
Smart code completion
Alt+Delete
Safe delete
Ctrl+Y
Delete line
Ctrl+D
Duplicate current line or selected block
Shift+F6
Rename
Ctrl+Alt+M
Extract method
Alt+Insert
Generate code
Ctrl+I
Implement methods
Ctrl+O
Override methods
Ctrl+Alt+I
Auto-i­ndent lines
Ctrl+Alt+L
Reformat code

IntelliJ - VCS

Ctrl+K
Commit to VCS
Ctrl+T
Update project from VCS
Alt+Sh­ift+C
View recent changes
 

Visual Studio - General

Ctrl+Q
Quick docume­ntation
Ctrl+S­hift+N
Go to file
Ctrl+S­hift+G
Navigate to
Ctrl+S­hif­t+Alt+G
Go to related files
Ctrl+S­hif­t+[­number]
Set/Remove bookmark
Ctrl+[­number]
Go to bookmark
Ctrl+F11
File structure
Shift+­Alt+L
Locate in solution explorer
F12
Go to next highlight
Shift+F12
Go to previous highlight
Alt+F12
Go to next error
Ctrl+T, Y
Run current session
Ctrl+T, R
Run unit tests

Visual Studio - Editing

Ctrl+S­hif­t+Space
Smart code completion
Ctrl+S­hif­t+Enter
Complete statement
Ctrl+A­lt+­Space
Import symbol completion
Ctrl+S­hif­t+A­lt+­u/d/l/r
Move code
Ctrl+D
Duplicate code
Ctrl+S­hift+V
Paste multiple

Visual Studio - Automation

Alt+Ins
Generate code
Alt+Enter
Show available quick-­fixes
Ctrl+J
Insert live template
Ctrl+Alt+J
Surround with template
Ctrl+A­lt+Ins
Create file from template

Visual Studio - Refact­oring

Ctrl+S­hift+R
Refactor this
Ctrl+Alt+F
Code cleanup
F2
Rename
Alt+Del
Safe delete
Ctrl+Alt+M
Extract method
Ctrl+Alt+P
Introduce parameter

Visual Studio - Code navigation

Ctrl+S­hif­t+B­ack­space
Go to last edit location
Ctrl+S­hif­t+A­lt+­Bac­kspace
View recent edits
Alt+F7
Find usages
Ctrl+S­hift+F7
Highlight usages in file
Ctrl+B
Go to declar­ation
Ctrl+A­lt+F7
Go to usage