DEV Community

Cover image for VS Code Shortcuts to code Smarter and Faster
Jack Pritom Soren
Jack Pritom Soren

Posted on

VS Code Shortcuts to code Smarter and Faster

  1. Code Formatting:

    -> Windows: Shift + Alt + F
    -> Mac: Shift + Option + F
    -> Ubuntu: Ctrl + Shift + I

  2. Select in Words:
    -> Windows: Ctrl + Shift + Right arrow / Left arrow
    -> Mac: Command + Shift + Right arrow / Left arrow
    -> Ubuntu: Ctrl + Shift + Right arrow / Left arrow

  3. Add Cursor Above/Below:
    -> Windows: Ctrl + Alt + Up arrow / Down arrow
    -> Mac: Command + Alt + Up arrow / Down arrow
    -> Ubuntu: Ctrl + Alt + Up arrow / Down arrow

  4. Code Folding:
    -> Windows: Ctrl + Shift + [
    -> Mac: Command+ Option + [
    -> Ubuntu: Ctrl + Shift + [

  5. Copy Line Up/Down:
    -> Windows: Shift + Alt + Up/Down
    -> Mac: Shift + Option + Up/Down
    -> Ubuntu: Ctrl + Shift + Alt + Up/Down

  6. Navigate to a Specific Line:
    -> Windows: Ctrl + g
    -> Mac: Ctrl + g or Ctrl + p
    -> Ubuntu: Ctrl + g

  7. Rename Symbol:
    -> Windows: F2
    -> Mac: F2
    -> Ubuntu: F2

Discussion (0)