Skip to content

Instantly share code, notes, and snippets.

@joma74
Last active August 28, 2017 08:56
Show Gist options
  • Select an option

  • Save joma74/69f338f3c1f39adb42e68a551969977c to your computer and use it in GitHub Desktop.

Select an option

Save joma74/69f338f3c1f39adb42e68a551969977c to your computer and use it in GitHub Desktop.
!VSCode
All about MS VS Code
#!/usr/bin/env bash
function storeNmbinPATH
{
export PATH=$(npm bin):$PATH;
}
function storeLibsPATH
{
export PATH=$PWD/libs:$PATH;
}
function storeWsRoot(){
export WSROOT=$PWD;
}
function unsetProxies(){
unset http_proxy;
unset https_proxy;
}
OLDPATH=$PATH;
storeNmbinPATH;
storeLibsPATH;
storeWsRoot;
unsetProxies;
# See https://code.visualstudio.com/docs/setup/linux
# Install
curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
sudo mv microsoft.gpg /etc/apt/trusted.gpg.d/microsoft.gpg
sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Update
sudo apt-get update
sudo apt-get install code # or code-insiders
# Location ${HOME}/.config/Code/User/settings.json
{
"typescript.check.tscVersion": false,
"typescript.tsserver.trace": "off"
}
# Location ${WS_ROOT}/.vscode/settings.json
// Place your settings in this file to overwrite default and user settings.
{
// "typescript.tsdk": "/home/joerg/.config/yarn/global/node_modules/typescript/lib/"
// "typescript.tsdk": "/home/joma/.config/yarn/global/node_modules/typescript/lib/"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment