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.
- How to add Business Users using Microsoft 365 Admin Center
- Microsoft Office Mac Ventura: System Settings must be changed before Microsoft AutoUpdate can run
- Save TextEdit file as Microsoft Word File .docx extension
- Fix - Microsoft Windows Error Code: 0xA00F4244 NoCamerasAreAttached
- How to Save a Notepad file as Microsoft Excel file
- Customize Praise badge for Microsoft Teams with own images, values, brand
- Microsoft Stream - This may not be for you, It looks like you don't have permission to watch this video
- Visual Studio Code available for Apple Mac ARM64 build for native M1 processor support
- Fix: Xbox Error Code: 0x80190190
- Fix Error Code: 80090030 in Microsoft Outlook/Teams
- Microsoft Edge Fix: ERR_TUNNEL_CONNECTION_FAILED
- AADSTS90033: A transient error has occurred. Please try again. [Microsoft 365]
- Fix- Microsoft Word Pages Appear Black
- Microsoft Excel Fuzzy Lookup Add-in
- Graph API error when querying BookingBusinesses - ErrorExceededFindCountLimit, The GetBookingMailboxes request returned too many results
- Keyboard shortcuts to format Source code in Microsoft Visual Studio Code IDE
- Lost your iPhone? Regenerate QR Code for Microsoft Authenticator App
- [Fix] Microsoft Remote Desktop Error Code: 0x204
- How to Sync Microsoft Teams Calendar with Mac Calendar
- How to know file encoding in Microsoft Windows Notepad?
- Fix: Microsoft OneDrive We are currently experiencing technical difficulties
- Fix Microsoft Windows Update Error 80072EFE
- [fix] Microsoft Error Code 0x80004005 - Unspecified error
- How to add Data Analysis Add-in in Excel on Mac
- How to save a file as csv in Windows Notepad?
- Maven Unsupported major.minor version 51.0 - Java
- Ubuntu: List all Installed Packages using apt - Ubuntu
- Java location in Mac OS X - Mac-OS-X
- Notepad++ insert a blank line above or below the current line example - NotepadPlusPlus
- Duplicate id @+id/textView1, already defined earlier in this layout Android Error - Android
- Convert Javascript object to JSON String example - JavaScript
- Online Free JSON String Formatter (Prettifier) Tool - Tools
- Rename git branch on Local and GitHub Remove using Command - Git