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.
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
<--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)
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
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.
No comments yet. Be the first to comment!