👨‍💻Best VsCode extensions for Python Developers🐍
Tags: python, vscode, productivity, webdev
Published: 2021-04-12 04:04:38

# 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**](https://marketplace.visualstudio.com/items?itemName=ms-python.python)

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

Also it installs for you the jupyter notebook extension!

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ru56t9uasn3oglzfls4s.png)
 

**Installation:** 

```
ext install ms-python.python
```

## Python snippets

This extension give you a lot of abbreviations to avoid writing by yourself the same thing many times.[**Python snippets**](https://marketplace.visualstudio.com/items?itemName=frhtylcn.pythonsnippets)

**Installation:** 

```
ext install frhtylcn.pythonsnippets
```
 

## Python Docstrings

Documentation is important, and this extension allows you to create beautiful docstrings for you functions/classes: [**docstring generator**](https://marketplace.visualstudio.com/items?itemName=njpwerner.autodocstring)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/x0bm4jywhoxvon3711gk.png)
 

**Installation:** 

```
ext install njpwerner.autodocstring
```

## Python indent

Fix Python indentation each time you press `Enter`: [**Python indent**](https://marketplace.visualstudio.com/items?itemName=KevinRose.vsc-python-indent)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zqty3pq5btyf0q1v7nj7.png)
 

**Installation:** 

```
ext install KevinRose.vsc-python-indent
```

## 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**](https://marketplace.visualstudio.com/items?itemName=LittleFoxTeam.vscode-python-test-adapter)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4gaiqy2aoe5f7gp8n3mg.png)

**Installation:** 

```
ext install LittleFoxTeam.vscode-python-test-adapter
```



## 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**](https://marketplace.visualstudio.com/items?itemName=almenon.arepl)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ebseqynlb26pfkc6p666.png)

**Installation:** 

```
ext install almenPython frameworks extensionson.arepl
```

# 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**](https://marketplace.visualstudio.com/items?itemName=oderwat.indent-rainbow)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ln0xpvlkapye3otj08mt.png)

**Installation:** 

```
ext install oderwat.indent-rainbow
```

## Better comments

This extension help you to create better comments, by highlighting special parts like TODO's, paramaters and queries. [**Better comments**](https://marketplace.visualstudio.com/items?itemName=aaron-bond.better-comments)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/wogey09b3kx0gstbxky6.png)
 

**Installation:** 

```
ext install aaron-bond.better-comments
```

## Git lens

Working with Git? This extension give you super powers working with Git. [**Git lens**](https://marketplace.visualstudio.com/items?itemName=eamodio.gitlens)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/h6sp73zohx5km5o8gaa2.png)

**Installation:** 

```
ext install eamodio.gitlens
```


# Extensions for Python frameworks

## Django template language

The django extension allows you to create clean and well highlighted DTL templates. [**Django**](https://marketplace.visualstudio.com/items?itemName=batisteo.vscode-django)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/p815ujuyr8xiam3vyaor.png)

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

```json
# SETTINGS_FOLDER/User/settings.json

"files.associations": {
    "**/*.html": "html",
    "**/templates/**/*.html": "django-html",
    "**/templates/**/*": "django-txt",
    "**/requirements{/**,*}.{txt,in}": "pip-requirements"
},
```
**Installation:** 

```
ext install batisteo.vscode-django
```

## Django snippets

Curated snippets for develop Django apps.[**Django snippets**](https://marketplace.visualstudio.com/items?itemName=bibhasdn.django-snippets)

**Installation:** 

```
ext install bibhasdn.django-snippets
```


# 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](https://marketplace.visualstudio.com/items?itemName=vscode-icons-team.vscode-icons) and you'll access to a bunch of file extensions icons.

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/0nru9l16p2mluumypzm9.png)
 

**Here is my preferred theme:**

[Cherry](https://marketplace.visualstudio.com/items?itemName=nullxception.cherry-theme&ssr=false#overview)

![image](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2m319nn11tbkn6l592ok.png)
 
>Take a look at [My blog](https://developerroad.herokuapp.com/blog/), 
 to get access to more awesome articles like this one.
 Please consider supporting me on [Ko-fi](https://ko-fi.com/daniel1404) you help me a lot to 
 continue building these tutorials!.
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/Y8Y03P8P1)


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