Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the necessary VS code plug-ins for Python programmers in 2021

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article introduces the knowledge about "what VS code plug-ins are necessary for Python programmers in 2021". In the operation process of actual cases, many people will encounter such difficulties. Next, let Xiaobian lead you to learn how to deal with these situations! I hope you can read carefully and learn something!

1. Python

VS Code also supports Python code highlighting without this extension. However, it is recommended that you install Python, an extension developed by Microsoft itself and created by the same creator as VS Code. It's useful for Python developers to be productive, and VS Code automatically suggests that you install it immediately after opening the first.py file.

But why install it? In addition to syntax highlighting, Python also has a powerful feature, such as:

IntelliSense: Write code using autocomplete, code navigation, syntax checking, and more

Linting: Use Pylint, flke8, etc. for additional code analysis

Code Format: Format code using black, autopep, or YAPF

Debugging: Debugging Python scripts, web applications, and remote or multithreaded processes

Testing: Run and debug tests with Test Explorer using unittest, pytest, or nose

Jupyter Notebooks: Create and edit Jupyter Notebooks, add and run code cells, render graphs, visualize variables with variable browsers, visualize data frames with data viewer, and more

Environment: Automatically activate virtualenv, venv, pipenv, conda, and pyenv environments, and support free switching

Refactoring: Refactoring your Python code with variable extraction, method extraction, and import sorting

Download address: marketplace.visualstudio.com/items? itemName=ms-python.python

2. Python Snippets

Python Snippets is an extension package developed by Ferhat Yalçın for built-in code snippets. This extension package is very useful for any developer, especially for Python beginners. It contains many built-in code snippets, such as strings, lists, sets, tuples, dictionaries, classes, etc. Another benefit of using this plugin is that it also provides at least one example for each code snippet, making it useful when learning Python.

Download address: marketplace.visualstudio.com/items? itemName=frhtylcn.pythonsnippets

3. Python Docstring Generator

The best thing about this extension is that it follows all the standard formats of docstring, including Google, docBlockr, Numpy, Sphinx, and the upcoming PEP0257. In addition, this docstring generator supports args, kwarg, decorators, errors, and parameter types with multi-line comments.

Download address: marketplace.visualstudio.com/items? itemName=njpwerner.autodocstring

4. Python Test Explorer for Visual Studio Code

Python Test Explorer for Visual Studio Code allows you to run Python unittest or Pytest tests using the Test Explorer UI. This small and handy tool allows you to test your code with an excellent user interface and debugging features. We all know the importance of unit testing, so it is necessary to have such a tool on an IDE or code editor.

Download address: marketplace.visualstudio.com/items? itemName=LittleFoxTeam.vscode-python-test-adapter

5. Python Preview

Python Preview is an extension that adds visual debugging capabilities to Python code. It converts debug code into interactive sessions with animation and graphical elements to represent the state of the application. As shown below:

Download address: marketplace.visualstudio.com/items? itemName=dongli.python-preview

6. Python Type Hint

We can think of Python's Type Hints as JavaScript's TypeScript. Python Type Hint provides type hint completions for built-in types, estimated types, and typing modules. In addition, it can search Python files in the workspace for type estimation.

Download address: marketplace.visualstudio.com/items? itemName=njqdev.vscode-python-typehint

7. jupiter

Jupiter is one of my favorite VS Code extensions. Integration with Jupyter Notebooks is one of my favorite PyCharm features, although to be fair, I prefer PyCharm integration to VS Code integration. jupiter for VS Code is free, while PyCharm jupiter Notebook integration is only available in the professional edition.

Download address: marketplace.visualstudio.com/items? itemName=ms-toolsai.jupyter

"What are the VS code plug-ins necessary for Python programmers in 2021" is introduced here. Thank you for reading. If you want to know more about industry-related knowledge, you can pay attention to the website. Xiaobian will output more high-quality practical articles for everyone!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report