VScode is a nice IDE for developers. It is widely used and has many features. Even so, I struggled trying to install it, using many different solutions found in the internet.
Finally, after many searches and tries, I had success to build and install VScode in my NVidia TX2 and decided to document and share my experience. Fell free to share this document.
Here are the steps I used.
~$ sudo apt install git libx11-dev libxkbfile-dev libsecret-1-dev fakeroot rpm libnss3 apt-transport-https
~$ curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
~$ sudo apt install -y nodejs
# Check if nodejs installation is ok using the command
~$ nodejs -v
~$ sudo apt install gcc g++ make
~$ 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 update
~$ sudo apt install yarn
# check if yarn installation is ok using the command
~$ yarn --version
~$ git clone https://github.com/microsoft/vscode
~$ cd vscode
~$ yarn
~$ yarn run watch
# after build you will get something like this
~$ ./scripts/code.sh
Enjoy!