👨‍💻Best VsCode extensions for Python Developers🐍

danidiaztech

Daniel Diaz

Posted on April 12, 2021

👨‍💻Best VsCode extensions for Python Developers🐍

Why do you need good tools for create software? 🤔

Short answer

Really you don't, in fact you only need something to write code, and something for run it.

So what's the reason to spend time searching for the best tools?

Although you don't need anything extraordinary to build awesome applications, the tools that you use everyday help you to make it faster and with less errors. As a result you create better software in less time.

Currently one of the most used code editors is VScode, offered by Microsoft. I know that some of you are afraid of Microsoft as company, but lastly it has been one of the best organizations that are supporting the software developing environment. From Github, to Azure and as I mentioned the best code editor in the earth.

Best extensions in Vscode for Python apps.

Note: For install extensions run the command palette with Ctrl + p and paste the installation command. If you can't (For any reason), just search the extension name in the
extensions tab.

Python

The must have extension: ms-python

It has a lot of features like Intellisense, Formatting, debugging, snippets, etc ...

Also it installs for you the jupyter notebook extension!

image

Installation:

ext install ms-python.python
Enter fullscreen mode Exit fullscreen mode

Python snippets

This extension give you a lot of abbreviations to avoid writing by yourself the same thing many times.Python snippets

Installation:

ext install frhtylcn.pythonsnippets
Enter fullscreen mode Exit fullscreen mode

Python Docstrings

Documentation is important, and this extension allows you to create beautiful docstrings for you functions/classes: docstring generator

image

Installation:

ext install njpwerner.autodocstring
Enter fullscreen mode Exit fullscreen mode

Python indent

Fix Python indentation each time you press Enter: Python indent

image

Installation:

ext install KevinRose.vsc-python-indent
Enter fullscreen mode Exit fullscreen mode

Python testing

If you are creating large applications, you'll need tests for ensure that the code works properly. This extension allows you to run your tests directly from the VScode UI: Python test explorer

image

Installation:

ext install LittleFoxTeam.vscode-python-test-adapter
Enter fullscreen mode Exit fullscreen mode

Real time Python Runner

Writing small applications requires rapid output checking. With this extension you can see the output of a python a file changing in real time: AREPL for python

image

Installation:

ext install almenPython frameworks extensionson.arepl
Enter fullscreen mode Exit fullscreen mode

General purpose extensions

These extensions help you to create code effortlessly.

Indent Rainbow

This extension colorizes the indentation of your python file. It results really useful when the code has a lot of nested levels. Indent rainbow

image

Installation:

ext install oderwat.indent-rainbow
Enter fullscreen mode Exit fullscreen mode

Better comments

This extension help you to create better comments, by highlighting special parts like TODO's, paramaters and queries. Better comments

image

Installation:

ext install aaron-bond.better-comments
Enter fullscreen mode Exit fullscreen mode

Git lens

Working with Git? This extension give you super powers working with Git. Git lens

image

Installation:

ext install eamodio.gitlens
Enter fullscreen mode Exit fullscreen mode

Extensions for Python frameworks

Django template language

The django extension allows you to create clean and well highlighted DTL templates. Django

image

Extension tip: This extension only works if you modify your settings file and add this json keys:

# SETTINGS_FOLDER/User/settings.json

"files.associations": {
    "**/*.html": "html",
    "**/templates/**/*.html": "django-html",
    "**/templates/**/*": "django-txt",
    "**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
Enter fullscreen mode Exit fullscreen mode

Installation:

ext install batisteo.vscode-django
Enter fullscreen mode Exit fullscreen mode

Django snippets

Curated snippets for develop Django apps.Django snippets

Installation:

ext install bibhasdn.django-snippets
Enter fullscreen mode Exit fullscreen mode

Extra

Beautify your workspace

You should make beautiful, the space you use many hours a day.

So let's take a look and what you can do:

Installing icons

Install the Vscode icons and you'll access to a bunch of file extensions icons.

image

Here is my preferred theme:

Cherry

image

Take a look at My blog,
to get access to more awesome articles like this one.
Please consider supporting me on Ko-fi you help me a lot to
continue building these tutorials!.
ko-fi

Any extension I left out of this list?, please let me know in the comments!

💖 💪 🙅 🚩
danidiaztech
Daniel Diaz

Posted on April 12, 2021

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related