Python configuration operating environment for the VS Code macOS

1. VS Ccode is an open source cross-platform editor. By default, VS Ccode language used is English (en), the following steps instead Chinese

Open VS Ccode tool, use the shortcut key combination [Cmd + Shift + p] in the search box, enter "configure display language", click OK, and modify the properties of "locale" in locale.json file as "zh-CN", restart vscode tool.

If restarting VS Ccode menus are still displayed in English, to see in the store installed plug-ins, the Chinese plug reinstall it again (store in search Chinese (Simplied ) Lang , can be installed ), and then restart the tool. (As shown below)

 

Store search python can be installed, remember to restart vscode after installation.

3.vscode configuration environment variable path

New hello.py file, open the file with vscode, vscode will be prompted to select the path environment variable, select "/usr/local/bin/python3.7" can be.

Add setting.json file or search path environment variable, as shown below, is added to the path python3 "python.pythonPath" in the user settings: "/usr/local/bin/python3.7"

4.python run (in fact, simply press F5 is also OK)

Store search code runner, installed after the restart. You will find the top right corner there is a run button, click on the run.

Guess you like

Origin www.linuxidc.com/Linux/2019-06/158943.htm