Home > Development Tools > VSCode > body text

How does vscode run py files?

青灯夜游
Release: 2019-12-23 16:21:30
Original
10233 people have browsed it

How does vscode run py files?

How does vscode run py files?

1. First, you need to make sure that the Python plug-in of VScode is installed. Open the Python script. You can drag it in directly, click on the file, and click on the user settings in the preferences. The user settings configuration file will appear.

How does vscode run py files?

#2. Then search for the Python keyword in the left file Ctrl F and find the line where pythonPath is located.

How does vscode run py files?

3. Then copy the file where Python is located to the file on the right, pay attention to the direction of the slash, delete the trailing comma, and press Crtl+S to save when finished.

How does vscode run py files?

#4. Then switch to our program file again, Ctrl shift B to run the program. At this time, you will be prompted to configure the task runner, click Configure.

How does vscode run py files?

#5. Choose to run any external command menu.

How does vscode run py files?

6. In the opened tasks.json file, two contents need to be modified, the path and the execution file name.

How does vscode run py files?

#7. After the final configuration is completed, the Python code can now be run directly with Ctrl shift B.

How does vscode run py files?

Related recommendations: vscode introductory tutorial

The above is the detailed content of How does vscode run py files?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!