如何在 Android 设备上运行 VS Code

huangapple go评论123阅读模式
英文:

How to run VS Code on Android Device

问题

我有一台Galaxy Tab S6,它有一些酷炫的功能,可以替代笔记本电脑,比如连接鼠标和键盘,但不幸的是它运行的是Android操作系统,而且Android上可用的开发应用程序不多,所以我想知道是否有在我的设备上至少运行VS Code的选项?

英文:

I have Galaxy tab S6 and it has cool features to replace laptop like connecting mouse and keyboard, but it unfortunately running Android OS, and not a lot of development apps are available to Android, so I thought if there's an option to run VS code at least on my device?

答案1

得分: 5

更新:只需从您的设备转到github.dev并添加到主屏幕。

> 我使用Linux Ubuntu在Galaxy Tab S6 ARM64基础处理器上编写了这篇文章,使用了完整版本的Chromium。以下方法适用于任何高端Android设备 如何在 Android 设备上运行 VS Code

您有两种安装Linux的方法:

  • 第一种 简单的方法(虚拟网络计算)(VNC):

1. 通过“Termux”安装Linux发行版

<code> pkg update -y && pkg install proot wget tar pulseaudio  -y &&  wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/ubuntu19.sh && chmod +x ubuntu19.sh && ./ubuntu19.sh </code>

2. 安装Linux GUI桌面环境,如“Xfce”。

sudo apt-get install xfce4 xfce4-goodies -y

3. 在Linux上启动VNC服务器。

sudo apt-get install tightvncserver -y

4. 在Android上打开“VNC Viewer”以开始操作。

您可能需要执行命令vncserver -list以列出端口

5. 安装arm64版的VSCode
6. 可选:安装arm64版的NodeJS

```apt install nodejs```
  • 第二种方法(Linux本地方式):

  • 安装可引导的Linux环境

  • 引导并安装Linux

更多信息:

https://medium.com/@quantvc/running-debian-on-android-device-natively-73545c9b0757

有用的资源:

https://play.google.com/store/apps/details?id=studio.com.techriz.andronix

https://play.google.com/store/apps/details?id=com.termux

https://play.google.com/store/apps/details?id=com.realvnc.viewer.android

英文:

Update: Simply go to github.dev from your device and add to home screen.

> I Wrote this post using Linux Ubuntu on Galaxy Tab S6 ARM64 Based
> Processor using full version of chromium. and the following methods can be applied on any high-end android device 如何在 Android 设备上运行 VS Code

You have 2 ways to install Linux:

  • First easy way (Virtual Network Computing) (VNC):

1. Install a Linux distro via "Termux"

<code> pkg update -y && pkg install proot wget tar pulseaudio  -y &&  wget https://raw.githubusercontent.com/AndronixApp/AndronixOrigin/master/Rootfs/Ubuntu19/ubuntu19.sh && chmod +x ubuntu19.sh && ./ubuntu19.sh </code>

2. Install Linux GUI desktop environment like "Xfce".

sudo apt-get install xfce4 xfce4-goodies -y

3. start a VNC server on your linux.

sudo apt-get install tightvncserver -y

4. Open "VNC Viewer" on android to start hacking.

you may need to do command vncserver -list to list the port

5. Install vscode for arm64
6. Optional: Install NodeJS for arm64

```apt install nodejs```
  • Second hacky way (Linux Natively):

  • install bootable linux environment

  • boot and install linux

more info:

https://medium.com/@quantvc/running-debian-on-android-device-natively-73545c9b0757

Helpful Resources:

https://play.google.com/store/apps/details?id=studio.com.techriz.andronix

https://play.google.com/store/apps/details?id=com.termux

https://play.google.com/store/apps/details?id=com.realvnc.viewer.android

答案2

得分: 0

根据我所知,

有一些可以在安卓设备上运行的集成开发环境(IDE)。

  1. JavaIDEdroid
  2. Java Editor
  3. DroidEdit
  4. Code Peeker Pro: Source Reader
  5. Anacode IDE

Android Apps and IDE

英文:

As far as i know,

There are few IDE that can run on Andriod devices.

  1. JavaIDEdroid
  2. Java Editor
  3. DroidEdit
  4. Code Peeker Pro: Source Reader
  5. Anacode IDE

Android Apps and IDE

huangapple
  • 本文由 发表于 2020年1月6日 21:22:06
  • 转载请务必保留本文链接:https://go.coder-hub.com/59612906.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定