Effective Coding Workflow: My VS Code Setup
There are a lot of Code Editors, some are free and some are paid. Among all of them my favorite Code Editor is Visual Studio Code
. It's free and has amazing features. I'm using it from the beginning of my web development journey.
Today I'm going to share my favorite Code Editor settings, using for my web development. And I'm going to start with my Code Editor looks. After all look matters.
⭐ Some other themes I used before:
- Oceanic Next - I used Oceanic Next (dimmed bg).
- Remedy - I used Remedy Dark (straight).
Another important things for my Code Editor looks. The font I'm using for my Code Editor is JetBrains Mono
. It's a free font with ligatures support.
The font ligatures are a new format for fonts that support symbol decorations instead of normal characters like =>, <=.
⭐ Some other fonts I used before:
- Operator Mono - Supports ligatures.
- Fira Code - Free & supports ligatures.
- Dank Mono - Paid & supports ligatures.
🌟🌟🌟 Do you want to use my settings, I use for my VS Code fonts? In your VS Code press Ctrl + p, type settings.json and open that file. Now replace below properties values with my given values.
"workbench.colorTheme": "Snazzy Operator",
"editor.fontFamily": "'JetBrains Mono', Consolas, 'Courier New', monospace",
File Icons enhance our VS Code Editor looks. Mainly it helps us to differentiate between different files & folders by their given icons. For my VS Code I use two file icons :
- Material Icon Theme - One of the most popular icon theme for VS Code.
- Material Theme Icons - Currently using this. And I'm using Material Theme Icons Light variant.
Extensions I Use
Automatically rename paired HTML/XML tag, also works in JSX.
Add entry into
, in your settings.json
file to set the languages that the extension will be activated. By default, it is ["*"]
and will be activated for all languages.
This extension allows matching brackets to be identified with colors. The user can define which tokens to match, and which colors to use.
This extension styles css/web colors, found in your document.
- Peek: Load the css file inline and make quick edits right there. (Ctrl+Shift+F12)
- Go To: Jump directly to the css file or open it in a new editor (F12)
- Hover: Show the definition in a hover over the symbol (Ctrl+hover)
Highlight key, value pairs in .env file.
'Linting' tool for VS Code - or Code checking tool.
"Lint, or a Linter, is a tool that analyzes source code to flag programming errors, bugs, stylistic errors, and suspicious constructs." Wikipedia
Highlight matching opening or closing tags.
Styles I use for this extension:
"borderWidth": "0 0 0 1.5px",
"borderWidth": "0 1.5px 0 0",
Shows image preview in the gutter and on hover.
This extension colorizes the indentation in front of your text alternating four different colors on each step.
Launch a local development server with live reload feature for static & dynamic pages.
Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
Set below property value to be
or add this property into your settings.json
file to format code on save.
Pug beautify plugin for VS Code. Press F1 and run the command named Beautify pug/jade to beautify your pug file.
REST Client allows you to send HTTP request and view the response in Visual Studio Code directly.
Synchronize Settings, Snippets, Themes, File Icons, Launch, Keybindings, Workspaces and Extensions Across Multiple Machines Using GitHub Gist.
Highlight TODO, FIXME and other annotations within your code.
Shows the latest version for each package in your package.json file.
📃 Terminal Setup
My operating system is windows. I use Git via the command line, so I have a Git Terminal
. And I use this terminal as my integrated terminal. My terminal settings are given below:
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.fontFamily": "FuraMono Nerd Font",
✔ Useful VS Code Keyboard Shortcuts
There are some important keyboard shortcuts, I use in my day to day coding life. These shortcuts enhance my productivity with Visual Studio Code.
- Ctrl + P : Go to File, You can move to any file of open solution/folder in Visual Studio code.
- Ctrl + ` : Open terminal in VS Code.
- Alt + Down : Move Line Down.
- Alt + Up : Move Line Up.
- Ctrl + D : Move Last Selection To Next Find Match.
- Ctrl + Space : Trigger Suggest.
- Shift + Alt + Down : Copy Line Down.
- Shift + Alt + Up : Copy Line Up.
- Ctrl + Shift + T : Reopen the latest closed window.
Thanks for reading and stay tuned.
Previously published at https://dev.to/iamismile/my-vs-code-setup-4fcd
Subscribe to get your daily round-up of top tech stories!