Visual Studio Code on XU4 Ubuntu 18.04

When I was a student around 25 years ago, I had to spend over $200 to buy a Microsoft Visual Studio C++ software package.
At that time, I used Windows 3.1 on a blazing fast Intel 80286 8Mhz 16bit processor with 1MB RAM to build a small commercial software as a part-time job.

Today, we can run the Visual Studio on the XU4 Ubuntu Linux.
Visual Studio Code is a source code editor developed by Microsoft for Windows, Linux and macOS.
It includes support for debugging, embedded Git control, syntax highlighting, intelligent code completion, snippets, and code refactoring.
It is also customizable, so users can change the editor’s theme, keyboard shortcuts, and preferences.
It is free and open-source, although the official download is under a proprietary license.

From the VS Code GitHub :
You need following items.
– Git
– Node.JS, >= 8.9.1, < 9.0.0
– Yarn >= 1.5.0
– Python, >=  2.7 (version 3 is not supported)
– npm
– libx11-dev and libxkbfile-dev for native-keymap
– libsecret-1-dev for keytar

Let’s install the required packages.

sudo apt install git nodejs libx11-dev libxkbfile-dev libsecret-1-dev npm 

And check the versions of key components.

odroid@odroid:~$ yarn --version
odroid@odroid:~$ python --version
Python 2.7.15rc1
odroid@odroid:~$ nodejs --version
odroid@odroid:~$ npm --version

“yarn” command in “cmdtest” package was too old which was compatible with npm.
So you have to install “yarn” package manually.

curl -sS | sudo apt-key add - echo "deb stable main" | sudo tee /etc/apt
sudo apt update
sudo apt install yarn

And I had the latest “yarn” version.

odroid@odroid:~$ yarn --version

Let’s download Visual Studio Code source from MS Github and build it.

git clone --depth 1
cd vscode
./scripts/ install --arch=armhf

Then, run your instance with ./scripts/ from that same folder.
You must force to reinstal libgconf2 manually to fix a runtime error.

sudo apt -y install libgconf2-4

The first launching took quite a long time. Be patient.
The performance of source code editor was very good and look-and-feel was very similar to the original Visual Studio.
It’s time to learn how to configure the gcc and gdb command in the integrated development environment.


우편번호 주소