A complete guide for setting up VS Code with essential extensions and settings for the workshop.
Welcome to the workshop! This guide will help you configure VS Code with the best extensions and settings for a professional development workflow.
Search for and install these in the VS Code Marketplace:
- Prettier - Code formatter: The industry standard for clean, consistent code.
- One Monokai: A sleek, high-contrast color theme.
- Material Icon Theme: Beautiful icons for your files and folders.
- Image Preview: Shows image thumbnails in the sidebar.
- Color Highlight: Highlights web colors (HEX/RGB) in real-time.
- Auto Rename Tag: Automatically renames paired HTML tags.
- Live Server: Launch a local development server with live reload.
- Python: Essential for running scripts and debugging.
- Jupyter: Allows you to open and run
.ipynbfiles directly inside VS Code.
Access settings via File > Preferences > Settings (Ctrl + ,).
| Setting | Value / Action |
|---|---|
| Default Formatter | Select Prettier - Code formatter |
| Format On Save | Enable (Check the box) |
| Auto Save | Set to onFocusChange |
| Tab Size | Set to 2 |
| Auto Close Tag | Ensure it is Enabled |
To apply your themes, press Ctrl + Shift + P and type:
- Color Theme: Select
One Monokai. - File Icon Theme: Select
Material Icon Theme.
- Duplicate a Line:
Shift + Alt + Down Arrow(or Up Arrow). - Move (Displace) a Line:
Alt + Up/Down Arrow. - Split Window:
Ctrl + \(Great for comparing code side-by-side).
When working with Next.js, multiple page.js tabs can be confusing. Let's fix that:
- Search for "Custom Labels" in Settings.
- Enable Workbench > Editor > Custom Labels.
- Click "Add Item" and enter:
- Pattern:
**/app/**/page.js - Value:
Page: ${dirname}
- Pattern: