How to Install Official VS Code on Android
-
Install Termux:
- Install Termux from the F-droid or F-droid/termux.
-
Setup Termux:
-
Update Termux packages and install
neofetch
:
apt update -y && apt upgrade -y && neofetch
Follow the prompts and say
Y
to all.
-
-
Install Ubuntu 22:
-
Install Linux VM (OS: Ubuntu 22):
pkg update -y && pkg install wget curl proot tar -y wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Installer/Ubuntu22/ubuntu22.sh -O ubuntu22.sh chmod +x ubuntu22.sh && bash ubuntu22.sh
-
-
Set Root Password and Install Packages:
-
In the Ubuntu 22 VM, set a password for root:
passwd
(Keep it as
root
for now.) -
Install necessary packages:
apt update -y && apt upgrade -y apt install nano curl wget python3 python3-pip neofetch dpkg sudo && neofetch
-
-
Create User:
-
Create a new user and grant sudo privileges:
useradd -m "<username>" passwd "<username>" usermod -aG sudo "<username>"
-
-
Update Packages:
-
Update Ubuntu packages:
sudo apt update -y && sudo apt upgrade -y && sudo apt --fix-broken install
-
-
Exit VM:
-
Exit the Ubuntu VM:
exit
-
-
Connect Local Storage:
-
Connect your local mobile storage to Termux:
termux-setup-storage
Say
Y
to allow if prompted.
-
-
Check Architecture:
-
Check the architecture of Termux/Android:
neofetch
Look for
aarch64
orarm64
for 64-bit architecture, andaarch32
orarmhf
for 32-bit.
-
-
Download VS Code:
- Go to the official VS Code website (https://code.visualstudio.com/download) and download the
.deb
package for Arm64 or Arm32 based on your architecture.
- Go to the official VS Code website (https://code.visualstudio.com/download) and download the
-
Copy and Install VS Code:
-
Copy the downloaded
.deb
file to the Ubuntu VM:
ls storage/downloads cp "storage/downloads/<filename>" "code.deb" mv "code.deb" "ubuntu22-fs/root/code.deb"
-
-
Start Ubuntu VM:
-
Start the Ubuntu VM:
bash start-ubuntu22.sh
-
-
Install VS Code:
-
Install VS Code using the
.deb
file:
apt install ./code.deb
-
-
Login and Run VS Code:
-
Login with your username:
login "<username>"
Enter your password.
-
Run VS Code in the browser:
code serve-web
Wait for a URL to appear, then copy and paste it into your browser.
-
Bonus
-
Run VS Code Server:
-
Run VS Code server on Android:
code tunnel
-
Enjoy using VS Code on your Android !
Double Verified by Junaid.
Author : Junaid
Top comments (1)
Hi