The Best VS Code Extensions For Python Developers In 2022.

Mahmoud Harmouch - Apr 21 '22 - - Dev Community

This is part 1 of the series where I share helpful VS code extensions, settings, shortcuts, tips, and tricks to enhance the productivity level of python developers.

Python is a powerful language used in many different applications, and it can be used for web development, data science, computer vision, DevOps, and much more. As such, it is crucial to have the right tools to make coding easier.

In this part of the series, we will explore some of the best VS Code extensions that I've compiled. I use some of them daily, the others I have recently come across. I am going to categorize these extensions into nine sections, as shown in the table of contents below.

πŸ‘‰ Table Of Contents (TOC).

Programming Languages

This section includes extensions used for auto-completion, syntax checking, and more.

Python by Microsoft

πŸ” Go To TOC.

Python by Microsoft

This extension allows developers to write and debug code in Python from VS Code. It also provides an interactive console for running Python code and debugging it with breakpoints, call stacks, and an integrated terminal.

For more information, you can refer to:

Marketplace

Github

Pylance

πŸ” Go To TOC.

Pylance

This extension provides rich type information, helping you write better code faster.

For more information, you can refer to:

Marketplace

Github

Jupyter

πŸ” Go To TOC.

Jupyter

This extension provides programmers basic notebook support for language kernels that are supported in Jupyter Notebooks.

For more information, you can refer to:

Marketplace

Github

Docker

πŸ” Go To TOC.

Docker

This extension allows programmers to build, manage, and deploy containerized applications with ease.

For more information, you can refer to:

Marketplace

Github

Code Runner

πŸ” Go To TOC.

Code Runner

This extension is similar to Python by Microsoft, enabling users to quickly and easily run code snippets in their code editor. It can be used for running, testing, and debugging code.

For more information, you can refer to:

Marketplace

Github

Code Snippets

This section includes extensions that provide shortcuts for code generating.

Djaneiro

πŸ” Go To TOC.

Djaneiro makes it easier to develop Django projects by generating Django templates, forms, models, and functions right in your editor with the help of abbreviations.

For more information, you can refer to:

Marketplace

Github

Django

πŸ” Go To TOC.

Django

This extension provides syntax highlighting and snippet code of code for django projects.

For more information, you can refer to:

Marketplace

Github

Flask Snippets

πŸ” Go To TOC.

The flask-snippets extension adds code snippets support for your editor.

For more information, you can refer to:

Marketplace

Github

Kubernetes

πŸ” Go To TOC.

Kubernetes

This extension helps devops engineer to build applications that run in Kubernetes clusters and troubleshooting Kubernetes applications.

For more information, you can refer to:

Marketplace

Github

Cloud Code

πŸ” Go To TOC.

Cloud Code

This extension makes it dead easy to develop kubernetes clusters, debug pods, and many more.

For more information, you can refer to:

Marketplace

Github

AI Assistants

This section includes extensions that are used for code generation, auto-completion, and more.

TabNine

πŸ” Go To TOC.

TabNine

TabNine is an open-source AI assistant that provides code completion suggestions based on the current context and the history of your previous commands. It also supports different languages like Python, Java, C#, Go, etc.

For more information, you can refer to:

Marketplace

Github

Github Copilot

πŸ” Go To TOC.

Github Copilot

Github Copilot is an AI assistant that helps programmers to write code faster.

For more information, you can refer to:

Marketplace

Github

Kite

πŸ” Go To TOC.

Kite

Like the previous extensions, Kite is an AI assistant that helps programmers to write code faster.

For more information, you can refer to:

Marketplace

Github

Version Control

This section includes extensions that make it easier to use git.

GitLens

πŸ” Go To TOC.

GitLens

It is a extension that provides git insights into your code. It helps you understand what code changes are staged and what code changes are unstaged. You can also see which files have been changed but not yet staged, which files are in the index, and which files have been deleted from the index.

For more information, you can refer to:

Marketplace

Github

Linters, Formatters, Highlighters

This section includes extensions that provide additional code analysis.

Pylint

πŸ” Go To TOC.

Pylint

It is an extension that helps developers to find errors in their Python files. It analyzes the source code and looks for programming errors such as syntax errors, etc. It also checks for style issues like lines too long or too short.

For more information, you can refer to:

Marketplace

Github

Python Indent

πŸ” Go To TOC.

Python Indent

This extension allows python programmers to indent their code easily.

For more information, you can refer to:

Marketplace

Github

Indent rainbow

πŸ” Go To TOC.

Indent rainbow

This extension is designed to make code prettier by highlighting indentation.

For more information, you can refer to:

Marketplace

Github

Trailing Spaces

πŸ” Go To TOC.

Trailing Spaces

It is a lightweight extension that helps developers identify trailing spaces in their code and offers a quick-fix to remove them.

For more information, you can refer to:

Marketplace

Github

Bracket Pair Colorizer 2

πŸ” Go To TOC.

Bracket Pair Colorizer 2

This extension is designed to highlight brackets that can be handy for nested containers like tuples, dictionaries, etc.

For more information, you can refer to:

Marketplace

Github

Update: This extension is deprecated in favour of the native built-in feature in VSCode.

Docstring

This section includes extensions that provide docstrings generation.

Auto Docstring

πŸ” Go To TOC.

Auto Docstring

This extension helps users to generate the docstrings of your Python scripts automatically.

For more information, you can refer to:

Marketplace

Github

Markdown

This section includes extensions that can help you write and preview markdown files.

Markdown All in One

πŸ” Go To TOC.

Markdown All in One

As the name implies, this extension is all you need for writing markdown files: keyboard shortcuts, table of contents, auto preview, and more.

For more information, you can refer to:

Marketplace

Github

MarkdownLint

πŸ” Go To TOC.

MarkdownLint

This extension can be used for Markdown linting and style checking.

For more information, you can refer to:

Marketplace

Github

Markdown Preview Enhanced

πŸ” Go To TOC.

Markdown Preview Enhanced

This extension provides automatic scroll sync, math typesetting, mermaid, PlantUML, pandoc, PDF export, code chunk, presentation writer, etc.

For more information, you can refer to:

Marketplace

Github

Markdown PDF

πŸ” Go To TOC.

Markdown PDF

This extension allows you to convert Markdown files to pdf, html, png or jpeg files.

For more information, you can refer to:

Marketplace

Github

Databases

This section includes extensions that can be used as database management tools.

Sqlite

πŸ” Go To TOC.

Sqlite

It is an extension used to explore and query SQLite databases.

For more information, you can refer to:

Marketplace

Github

MySQL

πŸ” Go To TOC.

MySQL

A MySQL management tool.

For more information, you can refer to:

Marketplace

Github

SQLTools

πŸ” Go To TOC.

SQLTools

This tool can be used as a database explorer, query runner, intellisense, and more.

For more information, you can refer to:

Marketplace

Github

Testing

This section includes extensions that can be used to write and run tests.

Python Test Explorer

πŸ” Go To TOC.

Python Test Explorer

This extension allows you to run your Python Unittest, Pytest or Testplan tests with the Test Explorer UI.

For more information, you can refer to:

Marketplace

Github

Code Coverage

πŸ” Go To TOC.

Code Coverage

It helps developers measure the code coverage of their code: How much of the code has been tested. It will highlight lines of code that are not covered by tests.

For more information, you can refer to:

Marketplace

Github

Wrapping Up

πŸ” Go To TOC.

This constitutes our VS code extensions list used by python developers(e.g., data scientists, DevOps Engineers, Backend Developers, etc.). These VS Code extensions can be helpful to developers in their day-to-day work with Python projects.

As always, this article is a gift to you, and you can share it with whomever you like or use it in any way that would be beneficial to your personal and professional development. By supporting this blog, you keep me motivated to publish high-quality content related to python. Thank you in advance for your ultimate support!

Future Work

πŸ” Go To TOC.

Now we have a handful list of VS code extensions that can make our life so much easier; I will be sharing my VS code settings, including the theme I use, icons, shortcuts, and many more. So stay tuned for future posts.

Happy coding, folks; see you in the next one.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player