DEV Community

Cover image for VS Code on my Phone (How I did it)

VS Code on my Phone (How I did it)

adriantwarog profile image Adrian Twarog ・2 min read

I setup vscode on my mobile and started coding. Normally programming like this is only possible on a desktop.

But there is a great way to start doing HTML, CSS, JS right on your phone, tablet, via WiFi or Internet!

This was fun!

This was used with the package: Code Server

It can be done with literally two lines of code:

curl -fsSL | sh
Enter fullscreen mode Exit fullscreen mode

Bring it online:

code-server --link
Enter fullscreen mode Exit fullscreen mode

Of course, if you don't have a physical machine, you can still run this up on a free Amazon and Google cloud platform on the free tier. This allows you to run VS Code on iPad, iPhone, Android, etc.

I have a full video that is covering the whole setup if you're interested.

Here is the Twitter post which went off with lots of comments!!!

Follow and support me:

Special thanks if you subscribe to my channel :)

Want to see more:

I will try to post new great content every day. Here are the latest items:

Discussion (8)

Editor guide
devhammed profile image
Hammed Oyedele

On Android, you can install Termux then run above commands so you don't even need a WiFi or hosting it online, it would run locally with IP address.

gamecube762 profile image

I'd also recommend Hacker's Keyboard for Android. It provides a full keyboard keyset (modifier keys, function keys, navigation keys, ext). SSHing with Termux is a lot more easier when you can make use of your keyboard shortcuts.

shubhamverma18 profile image
Shubham Verma

True, but this method of hosting server on PC can help you edit PC files.
Reverse can be done if hosted from phone.

devhammed profile image
Hammed Oyedele

This is not an issue if you are using Git.

jdog787 profile image

Wow that’s cool! Also nice video πŸ˜‚

zdev1official profile image

That's amazing 🀩🀩

kokochef profile image
Kaustabh Kakoty

Unfortunate that Monaco editor is not supported in mobile. But this is cool though.

sharozijaz profile image
Info Comment marked as low quality/non-constructive by the community. View code of conduct
Sharoz Ijaz

IPhone Sucks