DEV Community

Amit Mondal
Amit Mondal

Posted on

VS Code extensions for Python

Won't waste your time and will just jump to the list of Visual Studio Code Extensions that I would recommend if you are a 🐍 Python developer.

1. Python

This will be the first and most important extension that I would recommend. It is all in one power packed extension for Python. It includes rich features like IntelliSense, Linting, Code formatting, Debugging, Testing, Jupyter Notebooks, Environments, and Refactoring.

Python extension GIF

2. autoDocstring

We all know how important it is to comment and document your code. This extension will:

  • Quickly generates a docstring snippet that can be tabbed through.
  • Choose between several different types of docstring formats.
  • Infers parameter types through pep484 type hints, default values, and var names.
  • Support for args, kwargs, decorators, errors, and parameter types.

auto-docstring extension GIF

3. Python Test Explorer

Yes, I know the Python extension already does this so why install another one? Well, this includes features like:

  • Showing a Test Explorer in the Test view in VS Code's sidebar with all detected tests and suites and their state.
  • Showing a failed test's log when the test is selected in the explorer.
  • Supporting multi-root workspaces.
  • Supporting Unittest and Pytest test frameworks.

Python Test Explorer extension image

4. AREPL

This extension is a real-time Python scratchpad. It may not sound like a great deal at first but believe me, if you’re doing any sort of exploratory work then this thing can come handy.

AREPL extension GIF

I know there are many more extensions available in the Market Place. Please let me know your favorite Python extensions for VS Code in the comments.

Thanks for giving your precious time and reading this.

Top comments (3)

Collapse
 
robmilne profile image
Rob Milne • Edited

Remote VSCode is a god-send if you prefer remote editing with VS Code over local vi/vim/nano editing via ssh. I use it for my headless Raspberry Pi projects.

Collapse
 
saint4eva profile image
saint4eva

Python has a great development experience in Visual Studio Code - even in Visual Studio IDE. Python is a great language.

Collapse
 
waylonwalker profile image
Waylon Walker

I have never seen AREPL before, that looks amazing! I am a heavy user of Ipython. I really like how AREPL runs automatically. I am definitely installing and using that one!