Beijing time on May 7, 2019, at the Microsoft Build 2019 Developers Conference, Microsoft announced a Web version of the VS Code - Visual Studio Online
Compared to the previous code-server, VS Code Online really a pro-son
I do, thinking about the first time to experience, but are currently online Azure cloud-based, built their own small
So, with the construction of their own research a little, writing this blog about the construction of the recording process, but also allows you to have a reference
In fact, building your own VS Code Online is also very convenient
Shining Microsoft's documentation will be able to build up ( https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run )
Here is my build process, according to my process we will be able to build up
1, install Git
sudo apt-get install git
2, installation Node.JS
Here according to Microsoft's official requirements, must be x64, and the version number nodejs between 10.x to 12.x, I used here is v12.13.1 version
sudo aptitude install nodejs sudo aptitude install Elevation sudo Elevation install Elevation - g sudo Elevation install - gn sudo N, 12.13 . 1
3, installation yarn
curl -sS 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
4, install Python
In accordance with the requirements of Microsoft's official website, where only install version python2.7 directly apt install the default is 2.7
sudo apt-get install python
5, the installation C ++ related components
sudo apt-get install libx11-dev libxkbfile-dev sudo apt-get install libsecret-1-dev sudo apt-get install fakeroot rpm
Here, all the preparatory work is complete, the next step is to compile and run
1, clone Source Codes
git clone https://github.com/microsoft/vscode.git
2, build vscode
cd vscode
yarn
Then there is a long wait
Done is done to see
After the build is complete execute the following command, remember Remember, I just do not perform this, has led to an error
yarn watch
The next is a long wait, there may be stuck, they see the red box below the input, you can execute Ctrl + C interrupt, I pro-test, it does not affect the operation
Then came the highlight of execution
yarn web
You can also add --port controls the port, - host to control the listening address
Here is the command I executed
Next, browser access 192.168.1.3:8080 be able to see the familiar interface
So far, all the work is complete it. Pleasant start writing code right