DEV Community

KenjiGoh
KenjiGoh

Posted on • Edited on

5 2

VS Code Shortcut Keys

Save time, because time is more important than money.
List is non-exhaustive, will add more along the way.

Default Shortcut Keys

Open Terminal for the current working file

Ctrl + `
Enter fullscreen mode Exit fullscreen mode

Split work screen

Ctrl + \
Enter fullscreen mode Exit fullscreen mode

Close Current work screen

Ctrl + W
Enter fullscreen mode Exit fullscreen mode

Collapse Explorer side bar

Ctrl + B
Enter fullscreen mode Exit fullscreen mode

Alternate between 2 work screens

Alt + 1 and Alt + 2
Enter fullscreen mode Exit fullscreen mode

Search files

Ctrl + P
Enter fullscreen mode Exit fullscreen mode

Swap line of codes

Alt + up or down key
Enter fullscreen mode Exit fullscreen mode

To edit same lines at one go

Ctrl + alt + up or down key
Enter fullscreen mode Exit fullscreen mode

Image description

Configure Global Snippets

Go File > Preferences > User Snippets > Global Snippets

  "console.log": {
    "scope": "javascript,typescript",
    "prefix": "cl",
    "body": ["console.log('');"],
    "description": "Log output to console"
  }
Enter fullscreen mode Exit fullscreen mode

Prevent auto conversion of single-quote to double-quotes

Go File>Preferences>Settings and search for prettier.singleQuote. Now check to true.
Image description

Cheers!

Image of Docusign

Bring your solution into Docusign. Reach over 1.6M customers.

Docusign is now extensible. Overcome challenges with disconnected products and inaccessible data by bringing your solutions into Docusign and publishing to 1.6M customers in the App Center.

Learn more

Top comments (0)

A Workflow Copilot. Tailored to You.

Pieces.app image

Our desktop app, with its intelligent copilot, streamlines coding by generating snippets, extracting code from screenshots, and accelerating problem-solving.

Read the docs

👋 Kindness is contagious

Dive into an ocean of knowledge with this thought-provoking post, revered deeply within the supportive DEV Community. Developers of all levels are welcome to join and enhance our collective intelligence.

Saying a simple "thank you" can brighten someone's day. Share your gratitude in the comments below!

On DEV, sharing ideas eases our path and fortifies our community connections. Found this helpful? Sending a quick thanks to the author can be profoundly valued.

Okay