Install VS Code in Android

VS Code is one type of Code Editor. It's supports many language like HTML, CSS, JS, Python, JAVA, C, C++ etc. It's not avilable for android divices. But after some configrations we can downlode the visualstudio code editor in android divices. Read this blog and you will undersatnd how can we do this.

logo img
Debojyoti Tantra
December 15,2024

Step 1 - Install Termux

Termux is a powerful terminal emulator and Linux environment app for Android devices. It combines a robust command-line interface (CLI) with a lightweight package manager, enabling users to install and use Linux software directly on their Android phones or tablets.

-->

Click here to Downlode Termux

<--

Step 2 - Install Ubuntu using Termux

Enter the following command on Termux to update the package repository

pkg update
pkg upgrade

Now let's install proot-distro using the following command:

pkg install proot-distro

Now fire this command and Ubuntu will start to install on your Android phone

proot-distro install ubuntu

Now, start Ubuntu by firing the following command:

proot-distro login ubuntu

You will now see a root@ubuntu prompt in the terminal(Termux)

Step 3 - Downloading code server

Now update and upgrade the root repository by following commands

apt update
apt upgrade

Now install wget using the following command:

apt install wget

We will now download the latest release of the code server from Github using the following command:

wget https://github.com/coder/code-server/releases/download/v4.16.1/code-server-4.16.1-linux-arm64.tar.gz

Extract the tarball using the following command:

tar -xvf ./code-server-4.16.1-linux-arm64.tar.gz

Enter the /bin folder of your code-server installation on Ubuntu (running on your phone)

cd code-server-4.16.1-linux-arm64
cd bin

Step 4 - Set up a password and start using VS Code

Setup a password for your VS Code instance using the following command:

export PASSWORD="password"

Launch the code server using the following command:

./code-server

Now go to localhost:8080 and use VS Code.

Need Help?

If any problem occurs, feel free to contact me for assistance.

Leave a Comment

Comments

    No comments yet. Be the first to comment!