Skip to content

Instantly share code, notes, and snippets.

@vinkrish
Last active January 19, 2022 02:05
Show Gist options
  • Save vinkrish/3c821e64db8bf8cda2c1777333403f7c to your computer and use it in GitHub Desktop.
Save vinkrish/3c821e64db8bf8cda2c1777333403f7c to your computer and use it in GitHub Desktop.
Visual Studio Code:
Ctrl+' = Toggle Terminal
Cmd + P = Go to File
Cmd + o = Opens file in finder
Cmd + Shift + k = Delete Line
Shift + Alt + F = Format with Indentation
Shift + Cmd + L = multi-word selection
Cmd + Alt + Up/Down = Selects in a column directly up or down from the cursor's position
Ctrl + k + 0 = Fold all section
Ctrl + k + j = Unfold all section
Shift + Alt + I = Select lines & press these keys will put a cursor at the end of every selected line
Alt + Click = Selects each instance with a new cursor
Android :
Ctrl + Alt + L = xml indent.
F3 = Find next.
Shift + F3 = Find previous.
Ctrl + R = Replace.
Ctrl + G = Go to line.
Ctrl + H = Open type hierarchy.
Ctrl + Shift + H = Open method hierarchy.
Ctrl + Alt + H = Open call hierarchy.
Ctrl + minus/plus = Collapse/expand current code block.
Ctrl + Shift + minus/plus = Collapse/expand all code blocks.
Ctrl + Space = Code completion.
Ctrl + Shift + Space = Smart Code completion.
Ctrl + Shift + Enter = Complete statement.
Ctrl + B = Go to declaration.
Ctrl + Alt + B = Go to implementation.
Ctrl + / = Line comment.
Ctrl + Shift + / = Block comment.
Ctrl + Alt + O = Optimize imports.
Alt + Enter = Quick fix.
Shift + Enter = New line.
Ctrl + F9 = Build.
Shift + F10 = Build and run.
Shift + F9 = Debug.
Alt + ` = Open VCS popup.
IntelliJ :
psvm = create main method.
Ctrl + Space = Code completion.
Ctrl + P = Values for function call.
Eclipse :
syso = println.
Ctrl + Space = Code completion.
Ctrl + T = Show the inheritance tree.
Ctrl + O = Show all methods.
Ctrl + M = Maximize active editor.
Ctrl + D = Deletes current line.
Ctrl + 1 = quick fix.
Ctrl + Q = Goes to the last edited position.
Shift + Enter = Adds a link break at the end of the line.
Ctrl + Shift + O = Organize the imports.
Ctrl + Shift + F = format code
Alt + Shift + Z = try/catch.
Shift + F2 = Javadoc.
Ctrl + F11 = Run.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment