17 Of The Best VS Code Shortcuts You Didn’t Know You Needed
Introducing a curated list (with gifs) of the best VS Code shortcuts I use every single day!
Keyboard shortcuts, or hotkeys, are the best. The absolute best. Not only do they save you time, but they keep you from context switching.
Context switching–or interrupting one task to switch to another, then back again–is a chief killer of productivity for anyone that works on long, focused tasks; like devs!
When you need to, for example, change the name of a variable and you’re able to complete that speedbump in 2 seconds, your brain can still remain in the original task at hand. But if changing the name of a variable takes much longer, then that speedbump turns into a full-fledged task on its own and your brain will have to switch into the “change the name of this variable everywhere” context, and then it has to switch back.
Hotkeys help to prevent speedbumps from turning into efficiency killing context switches, so make sure you know and use these keyboard shortcuts when using VS Code!
Note: If you want to see all standard VS Code hotkeys for windows and mac, the links are here:
– https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf
– https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf
1 – See all hotkeys:
Windows: CTRL+SHIFT+P
Mac: ⇧⌘P
Why this is useful?
Starting with the most useful hotkey of all, [CTRL+SHIFT+P] gives you the master list of not just every hotkey available, but every command available, even hotkeys supplied by external libraries like Typescript. Try CTRL+SHIFT+P and typing in “Screencast” to toggle screencast mode on and off.
13 – Format file:
Windows: Shift+Alt+F
Mac: ⇧⌥F
Why this is useful?
Instantly format the document you’re working on.
Ensuring everyone on the team uses the same formatter, like Prettier, and assigning “auto-format on save” will you save valuable time when merging because your spacing and newlines will all be consistent.
17 – Organize Typescript Imports:
Windows: SHIFT+ALT+O
Mac: ⇧⌥O
Why this is useful?
Remove components you’re not using! This is especially useful when you have a larger component that uses tons of imports and you want to break it out into smaller components. When making the smaller component, instead of trying to figure out which imports to copy over from the larger component, simply copy all the imports then SHIFT+ALT+O and the ones that aren’t used will be removed.
Conclusion
Hopefully you find this helpful!
About Intertech
Intertech is a Software Development Consulting Firm that provides single and multiple turnkey software development teams, available on your schedule and configured to achieve success as defined by your requirements independently or in co-development with your team. Intertech teams combine proven full-stack, DevOps, Agile-experienced lead consultants with Delivery Management, User Experience, Software Development, and QA experts in Business Process Automation (BPA), Microservices, Client- and Server-Side Web Frameworks of multiple technologies, Custom Portal and Dashboard development, Cloud Integration and Migration (Azure and AWS), and so much more. Each Intertech employee leads with the soft skills necessary to explain complex concepts to stakeholders and team members alike and makes your business more efficient, your data more valuable, and your team better. In addition, Intertech is a trusted partner of more than 4000 satisfied customers and has a 99.70% “would recommend” rating.