Visual Studio Code 无法在 Ubuntu 上运行 [英] Visual Studio Code doesnt run on Ubuntu

查看:56
本文介绍了Visual Studio Code 无法在 Ubuntu 上运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我按照此处的说明操作 https://askubuntu.com/问题/616075/how-to-install-visual-studio-code-on-ubuntu 运行 Visual Studio Code https://code.visualstudio.com/

I followed the instruction here https://askubuntu.com/questions/616075/how-to-install-visual-studio-code-on-ubuntu to run Visual Studio Code https://code.visualstudio.com/

但是当我双击应用程序(命名为代码)时,没有任何反应(没有错误消息).

but nothing happens (no error message) when I double-click on application (named Code).

推荐答案

在 Ubuntu 16.04 及更高版本中,如果您搜索vscode",Visual Studio Code 应该会出现在 Ubuntu 软件应用程序中.或者可以通过运行命令 sudo snap install code --classic 从终端安装它.经典限制中的 snap 作为传统打包的应用程序运行,具有对系统的完全访问权限,并且 Visual Studio Code 扩展安装到用户的主目录中.

In Ubuntu 16.04 and later Visual Studio Code should show up in Ubuntu Software application if you search for "vscode" or it can be installed from the terminal by running the command sudo snap install code --classic. A snap in classic confinement behaves as a traditionally packaged application with full access to the system, and Visual Studio Code extensions are installed into the user's home directory.

Visual Studio Code 不是 IDE,因此无法像在 Visual Studio 中那样在 Visual Studio Code 中创建项目.另一方面,可以使用 Code Runner 扩展直接在 Visual Studio Code 中运行 Python、C、C++、JavaScript、PHP、Java、R 和一些其他编程语言代码块.需要其他扩展才能使每种编程语言的调试功能正常工作.

Visual Studio Code is not an IDE, so it is not possible to create a project in Visual Studio Code, like it is in Visual Studio. On the other hand it is possible to run Python, C, C++, JavaScript, PHP, Java, R and some other programming language code blocks directly in Visual Studio Code using the Code Runner extension. Other extensions are required to get the debugging features of each programming language working.

这篇关于Visual Studio Code 无法在 Ubuntu 上运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆