ExtensionsSettingsMoving Primary SidebarShortcutsGeneral NavigationEditingSearching and ReplacingCode NavigationTerminalFormattingUser Snippets
Extensions
- LiveServer: It gives a loopback address in local server for development
- Prettier: Used to format our code in a beautiful manner
- Image Preview: Shows little images on the side bar
- JavaScript (ES6) code snippets: Provides some shortcuts for JS
clfor console.log() oraffor arrow function
- Tailwind Intellisence
- Thunder Client or Echo API: API testing
- Mobile View: 📱 For mobile first testing
- Supermaven: Code on steroids
Settings
- We can open command pallet using
Ctrl + Shift + Pwhich is used for a variety of tasks/actions
- Toggle Word Wrap (
Alt + Z)
- Format on save to on (This automatically formats our code on save)
autosavetoonfocuschange(Will automatically save changes)
default formatterto Prettier
Moving Primary Sidebar
We can optionally move the primary sidebar to the right for less context switching
Shortcuts
General Navigation
- Command Palette:
Ctrl + Shift + PAccess all commands.
- Quick Open:
Ctrl + PQuickly open files.
- Toggle Sidebar:
Ctrl + BShow/hide the sidebar.
Editing
- Copy Line Up/Down:
Alt + Shift + Up/Down ArrowDuplicate the current line or selection.
- Move Line Up/Down:
Alt + Up/Down ArrowMove the current line up or down.
- Delete Line:
Ctrl + Shift + KDelete the current line.
- Select Line:
Ctrl + LSelect the entire line.
- Comment/Uncomment Line:
Ctrl + /Toggle line comment.
- Multi-Cursor Selection:
Ctrl + ClickPlace multiple cursors.
Searching and Replacing
- Find:
Ctrl + FOpen the search box.
- Find in Files:
Ctrl + Shift + FSearch across files.
- Replace:
Ctrl + HOpen the replace box.
- Replace in Files:
Ctrl + Shift + HReplace across files.
Code Navigation
- Go to Definition:
F12- Jump to the definition of a function, variable, etc.
- Peek Definition:
Alt + F12View a definition in a small inline window.
- Go to Line:
Ctrl + GGo to a specific line number.
Terminal
- Toggle Terminal:
Ctrl + `Show/hide the integrated terminal.
Formatting
- Format Document:
Shift + Alt + FFormat the entire document.
User Snippets
- User Snippets to create custom code shortcuts such as for CSS reset code
- To create a user snippet follow these steps:
Ctrl + Shift + Pand then type Snippets- Then new Global Snippets File
- Name your snippet file
- Then tweak the template depending on use-case
🫂 thanks!