Thanos will be no match for you when VS Code is loaded with these 8 extensions!

1. Python extension for Visual Studio Code

This extension is officially provided by Microsoft and supports but is not limited to the following features:

** Check through Pylint or Flake8 support code **
Debug Code in the VS Code editor
**IntelliSense supports auto-completion, code navigation, and formatting. **
** Supports Jupyter Notebook, Pytest and Unittest**
** Easily switch Python environments in the editor **
! [](https://p1.pstatp.com/origin/pgc-image/9e0ac2c672f04886af523d29ce5e9907)

2.Python Preview

This plugin can visualize the results of your code in real time, and can also switch between different theme skins for VSCode.

! [](https://p1.pstatp.com/origin/pgc-image/fefe3bca5671431dadcf086ab81e89ed)

3.Sort lines

This extension can sort by alphabetical size (ascending, descending), or sort + de-weight. And you can shuffle all the text out of order. This tool is useful for training short text categorization and cleaning data sets.

! [](https://p1-tt-ipv6.byteimg.com/large/pgc-image/25bff367111849c28f8837335f7d2412)

4.Git Graph

This is a Git wizard, comparable to Pycharm.

With this extension, you can clearly see the commit records and changes for the current branch, and easily create, switch branches, cherry pick, merge, and more with a button.

Compare branches and view uncommitted changes…… There are also many customizable extension Settings.

! [](https://p1-tt-ipv6.byteimg.com/large/pgc-image/cf112735490a4089b6ea0a7dbd6ac127)

5.Python Snippets

Most of the time, we use similar snippets of code, such as for loops, try/catch, etc. With this tool, we can just type in commands to generate snippets, and then fine-tune them to get the functionality developed.

In addition, sometimes we forget how to use some of the built-in functions, this tool can also provide you with sample code for reference, rather than you need to search for examples in a search engine, which is very convenient.

! [](https://p1.pstatp.com/origin/pgc-image/b720962948504052aa2d6b9e133f23cd)

6.Better Comments

This is a tool that allows you to write better comments by highlighting code snippets in different colors based on keywords. The following types of highlighting are supported:

1. Exclamation point! Code warning.

2. Question mark “?” M is for leaving questions.

3. What TODO code will do in the future.

4. @ param parameter

In addition, it allows you to customize your Settings to highlight the first keyword of a sentence.

! [](https://p1.pstatp.com/origin/pgc-image/1fa0ffd3750f4b8aae65873ec104c984)

7.autoDocstring

This extension automatically generates a comment format for a function, using the TAB key to quickly switch the fill block to write the corresponding comment.

! [](https://p1.pstatp.com/origin/pgc-image/62a57f946f084ee58c6166a27fd82cdc)

8.Python Indent

Do you think VSCode’s automatic indentation of Python is a bit inaccurate? You could even call it ugly. Every time I like to force VSCode to do auto-indentation for me.

Python Indent is an extension that corrects VSCode indentation errors. Take a look at the example below, and I’m sure you’ll install it too.

! [](https://p1.pstatp.com/origin/pgc-image/7b7cfdc7d6724505ae82fdf2b428f24a)