Install nodejs
Visual Studio Code needs node version between 8 and 10. To install node 10 and yarn:
curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
sudo apt-get install -y nodejs
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt-get update && sudo apt-get install yarn
Install libraries
We also need some libraries:
sudo apt-get install libx11-dev libxkbfile-dev libsecret-1-dev
Clone and build Visual Studio Code
In a working directory, clone the source code and build.
git clone https://github.com/microsoft/vscode
cd vscode
scripts/npm.sh install
Edit 2019-06-15: To enable extensions, edit the product.json file and add the following:
"extensionsGallery": {
"serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
"cacheUrl": "https://vscode.blob.core.windows.net/gallery/index",
"itemUrl": "https://marketplace.visualstudio.com/items"
}
To run Visual Studio Code:
scripts/code.sh