Mastering VS Code: Sneaky Tips and Tricks for Beginner Coders
Keyboard shortcuts
Using keyboard shortcuts in Visual Studio Code (VS Code) can greatly enhance your coding productivity and save you time. Instead of manually navigating through the menus, keyboard shortcuts allow you to quickly execute commands and perform tasks, such as opening and closing files, searching for code, or debugging your application.
With practice and familiarity, keyboard shortcuts can become second nature, allowing you to focus on the task at hand and avoid distractions caused by menu navigation. Additionally, using keyboard shortcuts can reduce the strain on your hands and wrists, as you can avoid repetitive mouse movements and clicks.
Overall, mastering keyboard shortcuts in VS Code can help you work faster and more efficiently, allowing you to spend more time coding and less time on repetitive tasks. Some Useful Shortcuts Are Mentioned Below -
- Ctrl + G - Goto line
- Alt + ↑ - Take line to upper
- Alt + ↓ - Take line to lower
- Ctrl + L - Select whole line
- Ctrl + Shift + L - Select all occurrence
- Ctrl + Alt + / or Alt + mouse click - Select multiple lines
- Alt + Shift + ↑ or Alt + Shift + ↓ - Copy line above or down
- Ctrl + ] - Indent lines
- Ctrl + [ - Outdent lines
- Ctrl + Alt + ->(Arrow Keys) - Move code to new tab group
Use these with vscode plugins ->
- Ctrl + Alt + l - Console log (turbo console log)
- Alt + Shift + d - Console log delete (turbo console log)
- Alt + Shift + u - Console log uncomment (turbo console log)
- Alt + Shift + c - Console log comment (turbo console log)
Top Vscode Extentions
Themes
- Dracula official
- Ayu
- Community material
- One dark pro
- Andromeda
Icons
- Vscode icons
- Material icon theme
Snippets
- ES7, React, Redux & GraphQL Snippets
- Tailwind Css Intellisense
Path
- Path intellisense [For completing filepath’s]
- Path AutoComplete
- npm intellisense
- Auto import
Tags
- Autoclose Tag
- AutorenameTag
- Html tag wrapper
Spelling
- Code spell checker
Screenshot
- Codesnap
Sidebar
- Peacock
Formatting
- Prettier
- Bracket Pair Colorizer
- Inline fold (For tailwind)
Debugging
- Live server
- Turbo console log
- Emoji snippets
- GitLens
- Githistory
- Import Cost
- Quokka.js
Tracking
- Todo tree
- Better Comments
- Sapling(React hierarchy )
Copilot
- Tabnine
- Github Copilot
Speedy coding
- Glean(React Refactor)
- Multiple cursor case preserve
Todo Tree Config:
"todo-tree.highlights.defaultHighlight": {
"icon": "alert",
"type": "tag",
"foreground": "black",
"background": "white",
"fontWeight": "bold",
"iconColour": "blue",
"gutterIcon": true,
},
"todo-tree.highlights.customHighlight": {
"TODO": {
"icon": "check",
"foreground": "white",
"background": "orange",
"iconColour": "white",
},
"NOTE": {
"icon": "note",
"foreground": "white",
"background": "#832561",
"iconColour": "#832561",
},
"COMMENT": {
"icon": "note",
"foreground": "white",
"background": "gray",
"iconColour": "gray",
},
"FIXME": {
"foreground": "white",
"rulerLane":"none",
"background": "pink",
"iconColour": "yellow",
},
"BUG": {
"foreground": "black",
"background": "red",
"iconColour": "red",
},
"[ ]": {
"icon": "check",
"foreground": "black",
"background": "white",
"iconColour": "yellow",
},
"[x]": {
"icon": "check",
"foreground": "white",
"background": "green",
"iconColour": "green",
}
},"todo-tree.general.tags": [
"BUG",
"HACK",
"FIXME",
"TODO",
"NOTE",
"COMMENT",
"[ ]",
"[x]"
],