A-ads

How to install vs code on Android using termux

 Visual studio code or vs code is a free source code editor.VS code software was made by Microsoft for Linux, Windows and Mac OS .Today in this blog post I will tell you that how we can install and use vs code on Android using termux.

vs code on Android


How to install vs code on Android

To install vs code on Android we will need termux application which can be downloaded from Google play store or F-Droid. After installing the termux application open your termux and enter the two commands which I have given below to update your termux.


1.apt-get update 

2.apt-get upgrade


Then we are going to install Ubuntu on Termux.If you don't know that how we can install Ubuntu on Termux you can read our previous post How to install Ubuntu in termux.

3.pkg install proot-distro

4.proot-distro install Ubuntu

5.proot-distro login Ubuntu

6.pkg update

7.pkg install wget

Now open your browser and paste the link on then search bar

Scroll down to the Assets and copy the download link of the latest code server tar file.
Vs code on Android



Now again open your termux and enter the command

wget <link>

Then the file downloading will be started.
After successfully downloaded the file to extract it use the command 👇

tar -xvf <tar file name>

After successfully extracting the tar file use the command 
ls
And you will find a new directory.Then change your working directory to the new created directory using the command

cd <new created directory name>

cd bin

Now set a password using the command

export PASSWORD="12345"

Now to create the connection use 

./code-server

Vs code on Android



Then open your browser minimizing the termux and search on the Google search bar
http://127.0.0.1:8080 

vs code on Android



and after that enter the Same password which you had entered on Termux.
Then your vs code will be run successfully on your Android device.
After that whenever you want to start vs code use the command 

./code-server  on Termux



Post a Comment

0 Comments