Home >Development Tools >VSCode >How to use vscode on ubuntu
How to use vscode in ubuntu
VS Code is a lightweight editor with the following advantages:
Cross-platform, supports lightweight support for multiple languages on windows, macos, and linux, such as C, C#, JAVA, PYTHON, PHP, etc.
VS Code installation
1. Go to the official website to download the installation package. Download address: https://code.visualstudio.com/Download
According to Need to choose download. What I downloaded is the .deb file of the ubuntu system.
deb is the installation format of debian linus. The most basic installation command is:
dpkg -i file.deb
2. So go to the directory where the .deb file is located and execute the above statement.
3. After the installation is complete, enter the code on the command line to call the software.
The following is the interface that opens for the first time:
4. Install the development language support tools you need.
I use it to compile python. Find Tools and languages as shown below and click
. The plug-ins for each tool will appear on the left as follows:
Just choose what you need and install it. After installation, you can support python development.
VS Code basically uses
to create a new file and name it test.py.
Test code:
import numpy as np a=np.ones(5)print a print ("hello")
The default shortcut key for running is F5, and there may be differences. Try it yourself~
The results are as follows:
This completes the installation and basic usage.
Related recommendations: "vscode usage tutorial"
The above is the detailed content of How to use vscode on ubuntu. For more information, please follow other related articles on the PHP Chinese website!