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 + Pto open any fileCmd + Shift + Pto access the command palette
The following commands are for switching out the view for the Side Bar on the left
Cmd + Shift + Eshow file explorerCmd + Shift + Fshow find/replace (global)Ctrl + Shift + Gshow git toolsCmd + Shift + Dshow debugging toolsCmd + Shift + Xshow 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-eslintIf you use a
.eslintrcfile and haveESLintinstalled either in the project locally or globally, then this just works. -
ext install git-project-managerDamn, this is awesome!
Cmd + Option + Pand start typing a.gitproject. HitEnterto 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.gitprojects. -
ext install npm-intellisenseCompletions of node modules in your
package.jsondependencies? Check. -
ext install path-intellisenseAutocompletion of filenames. And, it even drops the
.jsif you are importing a module. -
ext install code-runnerHandy. Highlight code. Run it! It even lets you customize how certain languages should run.
-
ext install advanced-new-fileCmd + Option + N, select a relative directory. Done. -
ext install vscode-open-in-githubNice 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-dockerCreate dockerfiles. Syntax highlighting and linting. And, Intellisense on image names from Dockerhub.com
-
ext install graphqlSyntax highlighting and code snippets for
GraphQL -
ext install file-iconsPort of
file-iconspackage for Atom