![]() Our article, "Working with virtual environments: the complete guide", will help you learn how to use virtual environments if you aren't familiar with them yet. You can change which version of Python the extension uses by clicking on the bottom right, where in the screenshot it says "Python 3.10.0".Īfter you create a virtual environment, which you should always do for each Python project you work on, you can choose it as the Python interpreter by clicking on the "Python 3.10.0" button. The Python extension gives you syntax highlighting and also helps you code by offering suggestions and hints. Once that's installed, you can open any folder using Visual Studio Code and create a file that ends in. ![]() There, look for the Python extension and install it: Open Visual Studio Code and navigate to the Extensions panel on the left hand side. And on Windows, make sure to tick the "Add Python to PATH" in the first screen of the official installer.ĭownload Visual Studio Code and install it like you would any other application. ![]() When you install Python (which I recommend you do via the official installer), remember in which folder you installed it. I'll also show you a few extensions that can make your life much easier while working with Python! Initial setup In this post we'll look at how to develop in Python using Visual Studio Code.
0 Comments
Leave a Reply. |