Skip to main content

Good news! Now you can also code on android phone

 

How to install VS Code in an Android Phone?





Loading...

In this post, we will see how you can install vs code on an android device. We will use one of the most popular android terminals called termux.

Follow the steps below:

Step 1 - Install termux

In order to install VS code, you will have to install termux using this link. The official release available on the play store doesn't seem to get the packages updated for some reason.

If upgrade command doesn't work on your termux, try to change the default repo by using the command below:

termux-change-repo

Step 2 - Install ubuntu using termux

Enter the following command on termux and ubuntu will start to install on your Android phone

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

start ubuntu by firing the following command:

./start-ubuntu.sh

Step 3 - Downloading code server

We will now download the latest release of code server from Github using the following command:

wget https://github.com/cdr/code-server/releases/download/v3.10.2/code-server-3.10.2-linux-arm64.tar.gz

Extract the tarball using the following command:

tar -xvf ./code-server-3.10.2-linux-arm64.tar.gz

enter the /bin folder of your code-server installation on ubuntu (running on your phone)

cd code-server-3.10.2-linux-arm64
cd bin

Step 4 - Set up a password and start using VS Code

Setup a password for your VS Code instance using the following command:

export PASSWORD="password"

Launch the code server using the following command:

code-server

Comments

Popular posts from this blog

Learn different programming languages for free

                                                    Free Video Courses Get your programming career started with these free video courses. Source code is available with all the videos for amazing learning experience https://www.codewithharry.com/videos

Free UI/UX Design Courses

  Free UI/UX Design Courses Explore a wide range of topics in UI/UX design through these free online courses offered by different platforms. Here are 6 different courses offered by top e-learning platforms and companies like Adobe, Google and more to learn the fundamentals of UI/UX design. 1. Adobe UX Foundation Learning Journey This free of cost UX Foundation Learning Journey is created by experts from Adobe and aligns 100% to the curriculum approved by the Industry and Government. The Journey will take you through UX Design concepts like UX process, research, visual elements, sitemap, information architecture, and navigation for smooth and intuitive user experiences. After completing this course, you will earn a co-branded certificate by Adobe and NASSCOM FutureSkills that is recognized by the industry as a credible micro-credential. Enroll for FREE 2. Product Design by Google This course is designed to help you materialize your game-changing idea and transform it into a product ...

Flask cheatsheet

  Flask Cheatsheet Loading... Importing Flask from flask import Flask Copy Most used import functions These are some of the most used import functions from flask import Flask , render_template , redirect , url_for , request Copy Boilerplate This is the basic template or barebone structure of Flask. from flask import Flask app = Flask ( __name__ ) @app . route ( "/" ) def hello_world ( ) : return "<p>Hello, World!</p>" app . run ( ) Copy route(endpoint) This is to make different endpoints in our flask app. @app . route ( "/" ) Copy Route method Allowing get and post requests on an endpoint. methods = [ 'GET' , 'POST' ] Copy Re-run while coding This is used to automatically rerun the program when the file is saved. app . run ( debug = True ) Copy Change host This is used to change the host. app . run ( host = '0.0.0.0' ) Copy Change port This is used to change the port. app . run ( port = 80 ) Copy SQ...