How to Run VsCode on Android Phone.!! (Visual Studio Code)

How to Run VsCode on Android Phone.!! (Visual Studio Code)

How to Run VsCode on Android Phone.!! (Visual Studio Code)
Wednesday, October 7, 2020
="text-align: left;">Hey What’s up  Geeks !! 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. 

                 


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.


Step 1: Install Ubuntu in Termux:

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



d) VoilĂ . 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 :


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.


VS Code includes a set of built-in extensions located in the extension folder, including grammars and snippets for many languages. Extensions that provide rich language support (code completion, Go to Definition) for a language have the suffix language-features. For example, the json extension provides coloring for JSON and the json-language-features provides rich language support for JSON.

Visual Studio Code is a distribution of the Code - OSS repository with Microsoft specific customizations released under a traditional Microsoft product license.
Visual Studio Code combines the simplicity of a code editor with what developers need for their core edit-build-debug cycle. It provides comprehensive code editing, navigation, and understanding support along with lightweight debugging, a rich extensibility model, and lightweight integration with existing tools.
Visual Studio Code is updated monthly with new features and bug fixes. You can download it for Windows, macOS, and Linux on Visual Studio Code's Website.


So that’s all Guys for this post. I hope you liked it ..!!! :)


How to Run VsCode on Android Phone.!! (Visual Studio Code)
4/ 5
Oleh
Open Comments
Close comment

18 comments

  1. Can you teach me how to install the latest code server release (3.6.2) which should give vs code v1.15. Many thanks

    ReplyDelete
  2. Having some problem,bro..

    root@localhost:~# code-server
    bash: /usr/bin/code-server: No such file or directory

    ReplyDelete
  3. root@localhost:~# code-server
    error listen EADDRINUSE: address already in use :::8080
    root@localhost:~# this problem is occurring

    ReplyDelete
  4. root@localhost:~# code-server
    error listen EADDRINUSE: address already in use :::8080
    root@localhost:~# this problem is occurring

    ReplyDelete
  5. The article us not visible sir

    ReplyDelete
  6. Geeky drive not show visual studio android code

    ReplyDelete
  7. I can't use your links as given in your YouTube channel to acces vs code in mobile.Please help me to access.

    ReplyDelete
  8. Not able to see the article.

    ReplyDelete
  9. Nothing code is written in your blog...

    ReplyDelete