[Best way] Install VS Code in *Android*

How to Install VS Code in Android?



VS Code is one of the developers favorite tool for coding. Have you ever thought of using it on your Android Mobile? Today, we will see - How to download & install vs code in android?


How to Install VS Code on Android?

We will be using one of the most popular terminals for android, Termux to download VS Code for mobile. Follow these steps:

Installing Termux

How to Install VS Code in Android?

Follow these steps to download Termux:
  1. Open up Google Play Store.
  2. Search for 'termux' in the search bar.
  3. Click on the first app (after all the ads).
  4. Click on the install button.


This will install Termux on your android mobile. After this follow the following steps to set it up:

  1. Open up Termux.
  2. Run the following command inside it:
    apk update
  3. If this gives you errors, then follow these steps:
    1. Then run the following command and try changing the default repo:
      termux-change-repo
    2. After this, you will get a dialog box, titled termux-change-repo, use the space and select all the three repos.
    3. Then press the enter key.
    4. After this you will see an option for choosing mirror, here choose one titled something like 'Mirror by Grimle', and hit enter key.
This will automatically run the apk update command.

Installing Ubuntu

How to Install VS Code in Android?

Follow these steps to install Ubuntu (Remember: It's a part of installing VS Code):
  1. Open up Termux.
  2. Run the follow command inside it:
    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
  3. To start ubuntu, run this command:
    ./start-ubuntu.sh


This will download and install Ubuntu on your device.

Downloading Code Server

How to Install VS Code in Android?

To download the latest release of Code Server, follow these steps:
  1. Open up Termux.
  2. Run the following command inside it:
    wget https://github.com/cdr/code-server/releases/download/v3.10.2/code-server-3.10.2-linux-arm64.tar.gz
  3. Run this command to extract tarball:
    tar -xvf ./code-server-3.10.2-linux-arm64.tar.gz
  4. To enter the /bin directory of your code server installation, run this command:
    cd code-server-3.10.2-linux-arm64 cd bin

Setup & Start Using VS Code

How to Install VS Code in Android?

Follow these steps:
  1. Enter the following command to set password of VS Code (You can replace password with your own password):
    export PASSWORD="password"
  2. You can run the code server, using this command:
    code-server

Now in order to open VS Code, follow these steps:
  1. Open up browser.
  2. Open the following link:
    localhost:8080/login
  3. If it asks for the password then enter the password you set.
By these ways you can setup and run your VS Code.


FAQ - VS Code For Android

Is VS Code available for android?

No, it's not officially available as app on the playstore. But there are various other ways of using it. One is to use it on your localhost server. We have explained all it's process in this article.

Can I use VS Code in mobile?

Yes, you can use VS Code in mobile. But, it's not officially available as app on the playstore. Rather you have to use it on your localhost server. We have explained all it's process in this article.

To install VS Code in android, you will need to install termux, then install Ubuntu using it, install the code server and use it as a code editor based on VS Code's layout and functioning.

Can we code in phone?

Indeed, you can involve VS Code in mobile phone. In any case, it's not accessible as application on the playstore. Maybe you need to utilize it on your localhost server. We have provided all of it's steps in this article.

To use VS Code in android, you should install termux, then, at that point, install Ubuntu utilizing it, install the code server and use it as a code supervisor in view of VS Code's design and working.

Small Help!

Big Contribution!


Conclusion

So, this was how you can download and install vs code in android mobile. If you have any problem, then you can write it down in the comments section below. Have a nice day!

1 Comments

Please don't add any spam link in the comment box!

  1. You know just by changing repo and I used f droid for termux u actually solved another problem for me thanks

    ReplyDelete
Previous Post Next Post