DEV Community

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

Posted on

3

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

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay