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.
-
A phone running either -
- Android
- Linux
- iOS/iPadOS (untested)
-
Terminal emulator
- Android: Termux from F-Droid or Play Store.
- Linux: Any terminal app works good.
- iOS/iPadOS: iSH from App Store or AltStore.
-
A network connection (VPN might cause problems when accessing via another device on the network)
-
Common Sense (optional)
curl -fsSL https://git.io/JRnBZ | bash
Open Termux and paste the command below
curl -fsSL https://git.io/JY372 | bash
If you want to be able to access your phone's storage from VS Code and Termux, accept the storage permission as shown below.
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.
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
...
Visit http://127.0.0.1:8080 and enter your password that you set in Step 3.
- Select a Dark theme by going to ⚙️ -> Color Theme -> Dark/Dark+
- Access local storage easily
- Add Open SUSE support in Linux script
- Make an all-in-one script
- Let user input password right after install
- Enable https