Skip to content

Instantly share code, notes, and snippets.

@ulisesantana
Last active November 17, 2017 16:02
Show Gist options
  • Save ulisesantana/e0c5466b4c1221a8818126702747facf to your computer and use it in GitHub Desktop.
Save ulisesantana/e0c5466b4c1221a8818126702747facf to your computer and use it in GitHub Desktop.
My script for setting up a just installed Visual Studio Code
#!/bin/bash
code --install-extension ikappas.phpcs
code --install-extension ms-vscode.Theme-MarkdownKit
code --install-extension sakryukov.convert-markdown-to-html
code --install-extension whatwedo.twig yzane.markdown-pdf
code --install-extension PeterJausovec.vscode-docker
code --install-extension be5invis.toml
code --install-extension christian-kohler.npm-intellisense
code --install-extension christian-kohler.path-intellisense
code --install-extension leizongmin.node-module-intellisense
code --install-extension eg2.vscode-npm-script
code --install-extension hnw.vscode-auto-open-markdown-preview
code --install-extension lukehoban.Go
code --install-extension negokaz.live-server-preview
code --install-extension prashaantt.node-tdd
code --install-extension xabikos.JavaScriptSnippets
code --install-extension ryu1kn.annotator
code --install-extension waderyan.gitblame
config=$(cat <<-END
{
"workbench.colorTheme": "Monokai",
"workbench.iconTheme": "vscode-icons",
"vsicons.projectDetection.autoReload": true,
"editor.tabSize": 2,
"window.zoomLevel": 0,
"files.autoSave": "off",
"mocha.files.glob": "**/**/*.test.js",
"vsicons.dontShowNewVersionMessage": true,
"git.confirmSync": false,
"editor.rulers": [80]
}
END
)
keybindings=$(cat <<-END
[
{ "key": "shift+alt+d", "command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly" }
]
END
)
echo $config >> $HOME/.config/Code/User/settings.json
echo $keybindings >> $HOME/.config/Code/User/keybindings.json
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment