简体   繁体   中英

Visual Studio Code doesnt run on Ubuntu

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).

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 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.

Where you extracted code, you cannot double click on it. Easiest way is to right-click and select run. You can make the "code" icon executable by using the terminal.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM