linux - 如何在 Linux 中运行 Visual Studio 代码

标签 linux centos redhat rpm

我是 Linux 操作系统的新手,我从微软官方网站的 Visual Studio 代码中下载了 rpm 包。这是机器

CentOS Linux release 7.6.1810 (Core)

我运行了命令
rpm -qpi code-1.40.2-1574694258.el7.x86_64.rpm

Output of the command

Name        : code
Version     : 1.40.2
Release     : 1574694258.el7
Architecture: x86_64
Install Date: (not installed)
Group       : Development/Tools
Size        : 235084185
License     : Multiple, see https://code.visualstudio.com/license
Signature   : (none)
Source RPM  : code-1.40.2-1574694258.el7.src.rpm
Build Date  : Mon 25 Nov 2019 10:04:31 AM EST
Build Host  : 2114565cfb42
Relocations : (not relocatable)
Packager    : Visual Studio Code Team <vscode-linux@microsoft.com>
Vendor      : Microsoft Corporation
URL         : https://code.visualstudio.com/
Summary     : Code editing. Redefined.
Description :
Visual Studio Code is a new choice of tool that combines the simplicity of a code editor with what developers need for the core edit-build-debug cycle. See https://code.visualstudio.com/docs/setup/linux for installation instructions and FAQ.


现在我想在 Windows 机器上运行 Visual Studio 代码。我如何实现这一目标?

注意我只有 ssh 连接到 linux 机器。

最佳答案

你应该从安装包开始。你只是查询 该软件包,要安装它,您必须(作为 super 用户)运行:

rpm --install code-1.40.2-1574694258.el7.x86_64.rpm

安装后,您将能够通过启动命令来启动程序:
code

正如@Leon.fon 所说,如果您只有 ssh连接后,您将无法启动 GUI,但导出显示可能会起作用:
ssh -X ...

关于linux - 如何在 Linux 中运行 Visual Studio 代码,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59157902/

相关文章:

linux - 在 Linux 中打开特定 block 上的文件

python - 如何在没有anaconda的CentOS linux中安装python cntk

php - 找不到 Laravel 5.1 CentOs7 部署在此服务器上找不到请求的 URL

linux - 根据第一个字段对内容进行排序并将第二个字段输出到新文件中

linux - grep 不写入文件

session - 简单终端命令后 RHEL session 崩溃(例如 cd ~)

regex - 如何从包含文件名一部分的列表中 -find -exec cp 文件

linux - 移动具有特定修改日期的文件; "find | xargs ls | grep | -exec"失败 w/"-exec: command not found"

c - 适合中等简单 TCP 服务器的良好架构

terminal - 命令输出 ELF : zR: Error