Today in this post I am going to show that How can you install VsCode i.e Visual Studio Code on your Android Phone. It will be like same PC version of VsCode and it will you help in your coding journey without having any PC. I always dreamt about making android that much powerful that even a poor kid living in a village can use the power of android to it’s full extent so that he fulfil his requirements of personal computer and this Blog is all about that. So Let’s start this Post.
Published by Abir Hasan.
So First of all you will need to install a Linux Distro for this to work and today I am going to use Ubuntu. Although I have the option to install the GUI of Ubuntu along with CLI but here i am just installing CLI of Ubuntu so in case you want to use GUI also feel free to install that. There will be no changes in steps.
Note: If you don't understand anything than feel free to ask in my Telegram Group.
Step 1: Install Ubuntu in Termux(If you don't have PC):
a) Install Termux from Play Store.
b) Run the following Commands:
1) apt-get update
2) apt-get upgrade
c) Run the command given here : pkg install wget openssl-tool proot -y && hash -r && wget https://raw.githubusercontent. com/EXALAB/AnLinux-Resources/ master/Scripts/Installer/ Ubuntu/ubuntu.sh && bash ubuntu.sh
d) Now you have CLI of Ubuntu installed in Termux so feel free to install GUI in case if you are interested otherwise follow from next step.
Step 2: Install VsCode in Ubuntu:
a)When you are in the Ubuntu terminal, you can run the following to grab the VsCode editor.
wget https://github.com/cdr/code-server/releases/download/2.1698/code-server2.1698-vsc1.41.1-linux-arm64.tar.gz
b)Extract it with the following.
tar -xvf ./code-server2.1698-vsc1.41.1-linux-arm64.tar.gz
Voila, you have the editor extracted . Now you can optionally delete the archive to free up some space else your are going to use it later.
c) The files are no more in an executable format, they need to be placed in a /bin folder for you to have the ability to call it
Due to that, the following command should do the work :
cp ./code-server2.1698-vsc1.41.1-linux-arm64/code-server /bin
You can now call the editor by running "code-server" any where in your terminal and you will be able to use it. It is served on localhost:8080.
Final note: Each time you launch it, you'll see a new password and it can be annoying. So let's set a password in our environment variables.
Run this :
Run this :
export PASSWORD="<your_password>"
Replace with any password of your choice and each time you launch the editor. You'll use the exact same password.
Note: If you don't understand anything than feel free to ask in my Telegram Group.
So that’s all Guys for this post. I hope you liked it ..!!! :)
0 Comments