Useful VS Code Shortcuts

I am really enjoying digging deeper into using Visual Studio Code. Here are some shortcuts that I have started using much more in my workflow.

F8 – Go To Next Problem

Also accessible from the window toolbar via Go -> Next Problem, This is very useful for quickly navigating through all errors after a build. Shift + F8 Will go to the previous problem

Control + Shift + b + Enter – Builds Project

This should build a project that has a build task defined in tasks.json. I’m still trying to figure out how to get this to happen without he need to hit the Enter key at the end of the sequence.

F2 – Rename Method

This is a wonderful way to rename a method or variable, as this is the command we are used to when renaming files and folders in Windows. It doesn’t require opening any menus, refactoring tools, or other complicated key combination. Try it out!

Alt + and Alt + = Navigate Forward and Backward

This is the equivalent of the Visual Studio proper Control Plus and Control -. I find the alt way of doing this more intuitive because this uses the arrow keys.