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 && neofetchFollow the prompts and say
Yto 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
rootfor 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-storageSay
Yto allow if prompted.
-
-
Check Architecture:
-
Check the architecture of Termux/Android:
neofetchLook for
aarch64orarm64for 64-bit architecture, andaarch32orarmhffor 32-bit.
-
-
Download VS Code:
- Go to the official VS Code website (https://code.visualstudio.com/download) and download the
.debpackage 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
.debfile 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
.debfile:
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-webWait 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 (3)
Hey guys , now it is easy in different method.
apt update && apt upgrade && apt full-upgrade && apt cleanapt install proot-distro, useproot-distro helpto help.proot-distro install Ubuntu && proot-distro rename Ubuntu vscode-vm.proot-distro login vscode-vmNote: this server does not support
FLATPACKorSNAParm64 or armhf or arm32via in your android. now we need it tomove from Downloads to root of vm: Downloads > termux > /data/data/com.termux/files/usr/var/lib/proot-distro/ /root/code.debdpkg -i ./code.deband run itcode-serverHi
Screenhshoot please