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
- Code Snippets
- AI Assistants
- Version Control
- Linters, Formatters, Highlighters
- Docstring
- Markdown
- Databases
- Testing
- Wrapping Up
- Future Work
Programming Languages
This section includes extensions used for auto-completion, syntax checking, and more.
Python by Microsoft
๐ Go To TOC.
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:
Pylance
๐ Go To TOC.
This extension provides rich type information, helping you write better code faster.
For more information, you can refer to:
Jupyter
๐ Go To TOC.
This extension provides programmers basic notebook support for language kernels that are supported in Jupyter Notebooks.
For more information, you can refer to:
Docker
๐ Go To TOC.
This extension allows programmers to build, manage, and deploy containerized applications with ease.
For more information, you can refer to:
Code Runner
๐ Go To TOC.
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:
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:
Django
๐ Go To TOC.
This extension provides syntax highlighting and snippet code of code for django projects.
For more information, you can refer to:
Flask Snippets
๐ Go To TOC.
The flask-snippets extension adds code snippets support for your editor.
For more information, you can refer to:
Kubernetes
๐ Go To TOC.
This extension helps devops engineer to build applications that run in Kubernetes clusters and troubleshooting Kubernetes applications.
For more information, you can refer to:
Cloud Code
๐ Go To TOC.
This extension makes it dead easy to develop kubernetes clusters, debug pods, and many more.
For more information, you can refer to:
AI Assistants
This section includes extensions that are used for code generation, auto-completion, and more.
TabNine
๐ Go To TOC.
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:
Github Copilot
๐ Go To TOC.
Github Copilot is an AI assistant that helps programmers to write code faster.
For more information, you can refer to:
Kite
๐ Go To TOC.
Like the previous extensions, Kite is an AI assistant that helps programmers to write code faster.
For more information, you can refer to:
Version Control
This section includes extensions that make it easier to use git.
GitLens
๐ Go To TOC.
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:
Linters, Formatters, Highlighters
This section includes extensions that provide additional code analysis.
Pylint
๐ Go To TOC.
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:
Python Indent
๐ Go To TOC.
This extension allows python programmers to indent their code easily.
For more information, you can refer to:
Indent rainbow
๐ Go To TOC.
This extension is designed to make code prettier by highlighting indentation.
For more information, you can refer to:
Trailing Spaces
๐ Go To TOC.
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:
Bracket Pair Colorizer 2
๐ Go To TOC.
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:
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.
This extension helps users to generate the docstrings of your Python scripts automatically.
For more information, you can refer to:
Markdown
This section includes extensions that can help you write and preview markdown files.
Markdown All in One
๐ Go To TOC.
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:
MarkdownLint
๐ Go To TOC.
This extension can be used for Markdown linting and style checking.
For more information, you can refer to:
Markdown Preview Enhanced
๐ Go To TOC.
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:
Markdown PDF
๐ Go To TOC.
This extension allows you to convert Markdown files to pdf, html, png or jpeg files.
For more information, you can refer to:
Databases
This section includes extensions that can be used as database management tools.
Sqlite
๐ Go To TOC.
It is an extension used to explore and query SQLite databases.
For more information, you can refer to:
MySQL
๐ Go To TOC.
A MySQL management tool.
For more information, you can refer to:
SQLTools
๐ Go To TOC.
This tool can be used as a database explorer, query runner, intellisense, and more.
For more information, you can refer to:
Testing
This section includes extensions that can be used to write and run tests.
Python Test Explorer
๐ Go To TOC.
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:
Code Coverage
๐ Go To TOC.
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:
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.
Top comments (12)
Regarding AI Assistants, Microsoft is rolling their own experiment too: marketplace.visualstudio.com/items...
I tried it for a while but so far I'm liking GitHub CoPilot more.
Hmmm... That sounds a bit strange to me! As far as I know, Microsoft bought Github a while ago, implying that Microsoft owns CoPilot; It should be rebranded to something like: Microsoft CoPilot.
Anyway, RIP our privacy, the so-called "metadata".
Tech-wise, GitHub has been maintaining their own autonomy. There have been a few GitHub - Microsoft integration / merging such as GitHub Workspaces / vscode.dev, but GitHub CoPilot and MS AI Assistants are completely separate projects.
Good post!
I think you don't need "Bracket Pair Colorizer 2" because it is a built-in feature in VS Code.
Just go to Settings -> Editor -> Bracket Pair Colorization
Or search for "bracket pair" to see all options.
I have just figured that out. Good to know. Thanks for the heads up!
Really an excellent post. Thank you so much for this.
Glad you dug it! That made my day. Thank you!
You're welcome bro.
As for Linting / Formatting, trunk.io/ is my latest treasure and it has a VSCode integration extension too.
That looks awesome! Thanks for suggesting this tool.
thank you for recommend this.
Iโm happy to help!