The goal of this document is to list out configurations and extensions that I use with VS Code. It aims to be more of a concentrated list and less of a "here's the firehose" awesome-list
(Even though I like awesome lists and all of the work that goes into making them 👏)
After using Atom for about 2 years, I have switched to using VS Code. Why? VS Code is fast. It's almost on par with Sublime Text. It also comes with a few more "batteries included" ⚡️ features, like a terminal and git integration. With all of this being said, this document contains opinions. If you agree with them, great! If not, that's also great!
If you're coming from Atom, you won't feel too far from home 😉
Cmd + P
to open any fileCmd + Shift + P
to access the command palette
The following commands are for switching out the view for the Side Bar on the left
Cmd + Shift + E
show file explorerCmd + Shift + F
show find/replace (global)Ctrl + Shift + G
show git toolsCmd + Shift + D
show debugging toolsCmd + Shift + X
show extensions menu
Ctrl + (backtick)
although, you'd probably have an easier time remapping this to something like Ctrl + '
Easy, just add a new shortcut
Cmd + K
, Cmd + S
{ "key": "ctrl+'", "command": "workbench.action.terminal.toggleTerminal" }
Open the user settings file, Cmd + ,
. Here, you'll find all of the settings that can be modified for VS Code. Once you find one that you want to modify, click next to it and it will be copied over into your own settings file. A few good custom settings to start with are font size and font family.
{
"editor.fontFamily": "Operator Mono",
"editor.fontSize": 14,
"editor.tabSize": 2,
"workbench.activityBar.visible": false,
"javascript.validate.enable": false
}
¯\_(ツ)_/¯
I rely onESLint
If GitHub markdown styles are your thing, check this out.
Now, for the list of extensions. I'll list links to the VSCode marketplace, as well as the install commands. To install any of these, simply press Cmd + P
and paste the install command listed next to each extension.
-
ext install vscode-eslint
If you use a
.eslintrc
file and haveESLint
installed either in the project locally or globally, then this just works. -
ext install git-project-manager
Damn, this is awesome!
Cmd + Option + P
and start typing a.git
project. HitEnter
to switch to that project in the same window. This supports customization like folder paths to monitor as well as a maximum recursion level to look for.git
projects. -
ext install npm-intellisense
Completions of node modules in your
package.json
dependencies? Check. -
ext install path-intellisense
Autocompletion of filenames. And, it even drops the
.js
if you are importing a module. -
ext install code-runner
Handy. Highlight code. Run it! It even lets you customize how certain languages should run.
-
ext install advanced-new-file
Cmd + Option + N
, select a relative directory. Done. -
ext install vscode-open-in-github
Nice shortcuts when you need to quickly open a file on GitHub (either in the current branch or master). This will even jump to the line number.
-
ext install vscode-docker
Create dockerfiles. Syntax highlighting and linting. And, Intellisense on image names from Dockerhub.com
-
ext install graphql
Syntax highlighting and code snippets for
GraphQL
-
ext install file-icons
Port of
file-icons
package for Atom