1. Download vscode
Official website address: https://code.visualstudio.com/
Click to download the deb installation package for ubuntu, the default download address is as follows, the download speed is very slow, and the download will fail, the solution is as follows:
change "https://az764295.vo.msecnd.net" to "https://vscode. cdn.azure.cn", the download will be fast.
For example, put:
https://az764295.vo.msecnd.net/stable/74f6148eb9ea00507ec113ec51c489d6ffb4b771/code_1.80.1-1689183569_amd64.deb
changed to
https://vscode.cdn.azure.cn/stable/74f6148eb9ea00507ec113ec51c489d6ffb4b771/code_1.80.1-1689183569_amd64.deb
The current (2023-07-20) version of vscode is 1.80.1
2. Install VSCode
sudo dpkg -i code_1.80.1-1689183569_amd64.deb
3. Install the plug-in
1) Install the Python plug-in
Search for python in the plug-in management, install Python, Python Extension Pack
Python Extension Pack contains several commonly used Python plug-ins