Setting Visual Studio code up for Python

β€” 2 minute read

permalink

I found this super cool feature when you open a Python file in Visual Studio Code. It will help you and suggest the Python plugin.

Visual Studio Code Python plugin

And for beginners in Python like me, this plugin is super helpful. Out of the box, it has some outstanding features.

You can download the Python Visual Studio Code plugin here.

Running Python files in Visual Studio Code permalink

The plugin will bring this cool run button to run your Python scripts inside Visual Studio automatically.

It will automatically start your environment and execute the command from there, which is incredible!

Running Python inside Visual Studio Code

It also introduces more run functions to execute a test and many more options for Python files.

IntelliSense and documentation permalink

These are super handy for anyone. The plugin will provide IntelliSense auto-complete functionality, as you can see in the screenshot below.

VSC Python IntelliSense

Furthermore, it can even state documentation when we hover on certain blocks of code.

Python documentation in Visual Studio Code

Debugging Python files permalink

We can easily set breakpoints in our code, then visit the Run & Debug tab and execute the run.

This will, in return, stop the code at that breakpoint and tell us what's going on till that point.

Debugging Python in Visual Studio Code

There are even more cool features to this plugin, but I found these to be super useful for people starting Python.

Thank you for reading, and let's connect! permalink

Thank you for reading my blog. Feel free to subscribe to my email newsletter and connect on Facebook or Twitter