Skip to content

thecmdrunner/vs-code-mobile

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vs-code-mobile (WORK IN PROGRESS)

Simple and Quick way to use VS Code Server on a phone without root/jailbreak.

This project uses code-server to install VS Code on your phone It can be used in the phone's browser or any other device on the same network.

Pre-Requisites

  • A phone running either -

    • Android
    • Linux
    • iOS/iPadOS (untested)
  • Terminal emulator

  • A network connection (VPN might cause problems when accessing via another device on the network)

  • Common Sense (optional)

Oneliner for all

curl -fsSL https://git.io/JRnBZ | bash

ANDROID

Step 1: One liner script

Open Termux and paste the command below

curl -fsSL https://git.io/JY372 | bash

screenshot here

Step 2: Integrating system storage

If you want to be able to access your phone's storage from VS Code and Termux, accept the storage permission as shown below.

screenshot here

Step 3: Starting the server

Run code-server from the terminal to start VS Code server. You may also set it to auto-start when termux is opened, by putting code-server at the end of your ~/.bashrc or ~/.zshrc file.

screenshot here

Note: Password authentication is disabled by default.

Edit the ~/.config/code-server/config.yaml to enable password authentication as shown below and change the default password before running it in a production environment.

...
auth: password
password: somestrongpassword 
...

Step 4: Run VS Code in Browser

Visit http://127.0.0.1:8080 and enter your password that you set in Step 3.

screenshot here

Step 5: Access VS Code on other devices

screenshot here

Step 6: Further Setup and useful tweaks

screenshot here

  • Select a Dark theme by going to ⚙️ -> Color Theme -> Dark/Dark+
  • Access local storage easily

To-Do:

  • Add Open SUSE support in Linux script
  • Make an all-in-one script
  • Let user input password right after install
  • Enable https

About

Simple and easy way to use VS Code on Phones

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages