
Press the desired key combination and press enter.
A pen like icon appears to the left - click it. To change the key combinations follow these steps: Type in the search box to view existing shortcuts. For Windows and Fedora (Windows keyboard) use CtrlĪs per Visual Code version 1.28.2 this is what I found.Į no longer exists. You can add a keybinding in "Preferences->Keyboard shortcuts" or if you are feeling a little lazy to scroll up: Under Default Keyboard Shortcuts, search ( Ctrl + F) for. Click File -> Preferences -> Keyboard shortcuts. I hope this helps save someone the confusion of searching through all of the top menus in vain. You will get formatting, IntelliSense, and lots of other goodies. When you have your code open, click on "plain text" to properly format your code. In the bottom right, click on "plain text." You will see the formatting picker where you can choose your code type: You paste the code and it’s formatted as plain text. Let’s say you are trying to review the sample JSON to format columns in SharePoint Online. The question remains, how do we do that? How to Format Code One thing you will quickly run into is Visual Studio Code does not automatically format the code. Visual Studio Code has support for various types of code that may be relevant to you, including a PowerShell console. If you live in the Microsoft world, like I do, you likely know about Visual Studio Code – a lightweight, but very powerful, IDE built from the ground up by Microsoft to leverage current code technology.
depending on the level of comfort or familiarity with each. The decision is based on personal preference some people use Notepad, Notepad++, PowerShell ISE (PowerShell only).etc. Visual Studio Codeįor those who don't identify as a "developer," we need an IDE (Integrated Development Environment) tool to look at our HTML, CSS, JavaScript, PowerShell, etc.
Here is a quick "how-to" to help you save time. If you use Microsoft's Visual Studio Code, changing the code format may not be all that obvious.