We use cookies to make your experience better.
How to install Termux to run code-server on an Android device.
Termux is a terminal application and Linux environment that you can also use to run code-server from your Android phone.
apt update && apt upgrade
apt install build-essential python git nodejs yarn
yarn global add code-server
code-server
and navigate to localhost:8080 in your browserTo upgrade run: yarn global upgrade code-server --latest
The following details known issues and suggested workarounds for using code-server with Termux.
There is a known issue with search not working on Android because it's missing
bin/rg
(context). To fix this:
Install ripgrep
with pkg
pkg install ripgrep
Make a soft link using ln -s
# run this command inside the code-server directory
ln -s $PREFIX/bin/rg ./vendor/modules/code-oss-dev/vscode-ripgrep/bin/rg
When using Android's on-screen keyboard, the backspace key doesn't work properly. This is a known upstream issue:
There are two workarounds.
Option 1: Modify keyboard dispatch settings
"keyboard.dispatch": "keyCode"
The backspace button should work at this point.
Thanks to @Nefomemes for the suggestion!
Option 2: Use a Bluetooth keyboard.
See an opportunity to improve our docs? Make an edit.