Python In Visual Studio Code
Có thể bạn quan tâm
Working with Python in Visual Studio Code, using the Microsoft Python extension, is simple, fun, and productive. The extension makes VS Code an excellent Python editor, and works on any operating system with a variety of Python interpreters. It leverages all of VS Code's power to provide auto complete and IntelliSense, linting, debugging, and unit testing, along with the ability to easily switch between Python environments, including virtual and conda environments.
This article provides only an overview of the different capabilities of the Python extension for VS Code. For a walkthrough of editing, running, and debugging code, use the button below.
Python Tutorial
Install Python and the Python extension
The tutorial guides you through installing Python and using the extension. You must install a Python interpreter yourself separately from the extension. For a quick install, use Python from python.org and install the extension from the VS Code Marketplace.
Note: To help get you started with Python development, you can use the Python profile template that includes useful extensions, settings, and Python code snippets.
Once you have a version of Python installed, select it using the Python: Select Interpreter command. If VS Code doesn't automatically locate the interpreter you're looking for, refer to Environments - Manually specify an interpreter.
You can configure the Python extension through settings. Learn more in the Python Settings reference.
Windows Subsystem for Linux: If you are on Windows, WSL is a great way to do Python development. You can run Linux distributions on Windows and Python is often already installed. When coupled with the WSL extension, you get full VS Code editing and debugging support while running in the context of WSL. To learn more, go to Developing in WSL or try the Working in WSL tutorial.
Run Python code
To experience Python, create a file (using the File Explorer) named hello.py and paste in the following code:
Từ khóa » Cài đặt Python Trên Visual Studio Code
-
Cài đặt Python Và Môi Trường Lập Trình Với Visual Studio Code
-
Cài đặt Môi Trường Phát Triển Python Trên Visual Studio Code - TEK4
-
Hướng Dẫn Lập Trình Python Với Visual Studio Code - VietTuts
-
HƯỚNG DẪN LẬP TRÌNH PYTHON TRÊN VISUAL ... - Học Viện Agile
-
Hướng Dẫn Lập Trình Python Với Visual Studio Code - VinaSupport
-
Cài Visual Studio Code Cho Lập Trình Python. - YouTube
-
Cài đặt Và Cấu Hình Python3 Cho Visual Studio Code Hệ điều Hành ...
-
Cách Bắt đầu Với Python Trong Visual Studio Code
-
HƯỚNG DẪN LẬP TRÌNH PYTHON TRÊN VISUAL STUDIO CODE ...
-
Python In Visual Studio Tutorial Step 5, Install Packages
-
Python And Flask Tutorial In Visual Studio Code
-
HƯỚNG DẪN CÀI ĐẶT PYTHON & VISUAL STUDIO CODE CHI TIẾT!
-
Hướng Dẫn Sử Dụng Visual Studio Code Lập Trình Python - Morioh
-
Cài đặt Python Và Môi Trường Phát Triển ứng Dụng