If you are new to Microsoft Visual Studio Code IDE (popularly called as VS Code) and wondering how to format or indent your source code, then here are the keyboard shortcuts that you can make use of,
For Windows:
If you are using VS Code on a device that runs Windows Operating System then the keyboard short cut is: Shift + Alt + F
For macOS:
If you are using VS Code on a device that runs Apple devices running macOS then the keyboard short cut is: Shift + Option + F
For macOS:
If you are using VS Code on a device that runs on Linux such as Ubuntu then the keyboard short cut is: Ctrl + Shift + I
⛏️ If you want to make use of your mouse, the simplest way to format your code is to right click anywhere in your source code file and select option - "Format Document", you can also check what the keyboard shortcut is by looking next to it just in case you forget it :)
This keyboard shortcuts remains the same irrespective of the programming language you are working on Java, JavaScript, Vue, Python etc.
- Lost your iPhone? Regenerate QR Code for Microsoft Authenticator App
- What is Microsoft 365 Message You are using more licenses on your trial than what you will purchase once the free trial ends.
- Power BI error Something went wrong, unable to read the application metadata
- How to save a file as csv in Windows Notepad?
- You're not on Teams yet, but you can set it up for your organization. [Microsoft Teams Login Error]
- Fix- Microsoft Word Pages Appear Black
- How To Remove Only Conditional Formatting in Excel
- How to record PowerPoint slide show presentation on Mac - narration, slide timings, ink gestures
- Fix 0x80070194 Error When Opening Microsoft OneDrive File
- 0xCAA20003: You ran into an authorization problem. [Microsoft]
- PowerShell git: The term git is not recognized as the name of a cmdlet
- Remove mailto link from Microsoft 365 Word Document Email Text
- How to take a screenshot on Microsoft Windows OS on PC or Laptop
- How to Force Quit Microsoft Excel Application on Mac
- [fix] Microsoft Error Code 0x80004005 - Unspecified error
- How to Delete a Sheet in Excel on Mac
- How to add Business Users using Microsoft 365 Admin Center
- [Microsoft Teams 4c7] Modern authentication failed here, but you'll still be able to sign in. Your status code is 4c7 error
- Fix Microsoft Store Error Code: 0x80072EFD
- How to add Data Analysis Add-in in Excel on Mac
- How to Select Two Separate Columns in Excel on Mac
- Internet Explorer browser auto redirect to Microsoft Edge for compatibility with modern web sites
- How to Create Absolute References in Microsoft Excel for Mac
- What is FCM Messages Test Notification! [Microsoft Teams] [Google Hangouts]
- How to Sync Microsoft Teams Calendar with Mac Calendar
- How to check file permissions for your file using Linux/Unix/macOS Terminal Command - Linux
- Download a SSL Certificate from a URL in Terminal - Bash
- Eclipse like Auto Import Shortcut in Intelij IDE Android Studio - Android-Studio
- How to delete a file using Python code example - Python
- SharePoint 2010 August 2015 Update KB3055049 - Duplicate Document ID issue bug fixed - SharePoint
- Google Chrome Update failed (error: 12) - Chrome
- SharePoint installation - Appfabric installation failed because installer MSI returned with error code:1603 - SharePoint
- Where is AWS Config and Credential files located on Mac - AWS