Emmanuel A.
Sep 11, 2023
•9 minutes
Code PBT Keycaps with Gateron Ink Switches V2
As a programmer that uses VSCode, you have code to write, to debug and more important things to deal with but you still have to struggle with navigating your tools, finding some commands on your keyboard and memorizing shortcuts. Doing all these can be draining and can affect your level of productivity.
Visual Studio Welcome Screen
While shortcuts are your best friends and should be kept handy, they can be difficult to remember. Some have advised printing a copy of relevant shortcuts and pinning them where you can see them, however it can still be a hassle pressing these shortcuts when all you want to do is press one or two keys to run commands that are specific to your workflow.
Here's the thing: you are not alone. Developers seeing the need for a more efficient way of mapping QMK-compatible keyboards developed a software called VIA. When this software is launched on your PC or Mac, it allows you to configure your keys to carry out functions that you deem fit. You could configure multiple keys to run when you press a specific key, such that anytime you press the “Caps Lock + K” keypad, for example, you pull code from your repo.
JavaScript in Visual Studio
In this article we will be sharing with you relevant keyboard shortcuts for VS Code, we will also be sharing with you how you can make use of VIA mapping as a programmer and how to configure your mechanical keyboard to be more productive. Below we will share some of essential keyboard shortcuts for VS Code and their functions:
The above shortcuts are relevant for VS Code programmers and are not limited to the shortcuts shared above. There are more but these few are what we will be sharing based on popular usage. Knowing these shortcuts will help you improve your productivity and allow you to re-map them to simpler keys depending on how often you use them. Configuring these shortcuts on your keyboard has additional advantages. In the session below we will share with you how you can configure your keyboard using VIA and enjoying ease while you work.
VIA's Homepage Options
If VIA is new to you, you may find it complex but it is actually easy to use. Long before now, you have to download VIA to be able to make use of it but you do not have to any longer. You just have to launch the web-based version through the web. VIA automatically detects your keyboard once it is open and loaded in your browser.
You can also configure your keys in layers. That is, you can use a single key to perform multiple functions or carry out a command. This feature comes handy when you are using a small keyboard that does not possess enough physical keys to accommodate all your functions. For example, you can assign shortcuts as layers to some of the letter keys on your keyboard. You can also do the same for the function keys if your keyboard does not come with them. Here are the steps to follow to achieve this:
Under the configure option, you will find the number of layers in each key can accommodate just above your keyboard outline.
VIA mappings makes your work life more easy and stress free as a VS Code programmer. All your shortcuts are at your fingertips. Now you have half of the job done for you and you can easily beat that deadline. If you're looking for a VIA compatible keyboard see why mechanical keyboards are good for programming.
You can also assign multiple functions to certain keys by making use of the layer feature and also reassign shortcuts and press multiple keys as one using the macron feature.
VIA mappings is an adventure on its own and one that is enjoyable and makes work easier for you. Play around with the keys until you find something you like. Your work life is about to change!