Skip to content

Instantly share code, notes, and snippets.

@simenandre
Last active December 21, 2018 06:58
Show Gist options
  • Select an option

  • Save simenandre/fa0fd7f54480dfa062a96762cf664488 to your computer and use it in GitHub Desktop.

Select an option

Save simenandre/fa0fd7f54480dfa062a96762cf664488 to your computer and use it in GitHub Desktop.
#!/bin/bash
EXTENSIONS=(
"aaron-bond.better-comments"
"dbaeumer.jshint"
"dbaeumer.vscode-eslint"
"eamodio.gitlens"
"eg2.tslint"
"HookyQR.beautify"
"kumar-harsh.graphql-for-vscode"
"mauve.terraform"
"ms-vscode.atom-keybindings"
"RamiroBerrelleza.bitbucket-pull-requests"
"sodatea.velocity"
"zhuangtongfa.Material-theme"
);
if ! [ -x "$(command -v code)" ]; then
echo "Error: vscode is not installed in the commandline." >&2
exit 1
fi
echo "Installing VSCode extensions"
for i in "${EXTENSIONS[@]}"
do
code --install-extension $i
done
vscodeSettings='{
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"workbench.colorTheme": "One Dark Pro",
"editor.fontSize": 17,
"git.confirmSync": false,
"git.enableSmartCommit": true,
"git.autofetch": true
}'
echo "Installing settings"
echo $vscodeSettings > $HOME/Library/Application\ Support/Code/User/settings.json
@simenandre

Copy link
Copy Markdown
Author

Install using:
curl -L https://gist.githubusercontent.com/cobraz/fa0fd7f54480dfa062a96762cf664488/raw/145c543c90eadf4c67699badb64fd40030a7aa86/install_vscode_setup.sh | bash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment