search
HomeBackend DevelopmentPython TutorialUse VSCode to write Python, these 14 plug-ins are not to be missed!

用 VSCode 写 Python,这14个插件不容错过!

It can be said that Visual Studio Code, the editor, has allowed Microsoft to win back the king position in the open source community. You must know that 14 million of the 24 million developers in the world call VSCode their home. , coupled with the combination of GitHub and VSCode, almost all programmers cannot do without VSCode. However, VSCode is so good that it is worth using by every programmer. I even think non-programmers can use it to code.

If you haven’t used VSCode yet, then visit here to install one [1]. It may open up a new world.

Today I share 14 very practical VSCode plug-ins that can make you write code like a god, especially Python code.

In view of the lightweight nature of VSCode, old users don’t have to worry about performance problems caused by installing “too many” extensions. If you want to do your job well, you must first sharpen your tools, so feel free to install it!

1. Refactor your Python code in real time: Sourcery

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

When you write Python code, it will Help you improve your code in real time. It automatically reviews and refactors your code so you can spend more time focusing on writing new code and less time cleaning up. Can make your Python code cleaner and more readable.

Use it to quickly find areas where your code can be refactored, see immediate suggestions for improvements, and understand how new changes affect code quality.

Main functions:

  • Real-time refactoring suggestions
  • Continuous code quality feedback
  • Multiple file analysis
  • Duplicate code Detection
  • GitHub Pull Request Comments
  • Sourcery CLI, CI and Pre-Commit Hook options

Click here to install Sourcery[2]

2 . Mark a certain line for jumping, equivalent to the bookmark function: Bookmarks

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

  • New sticky engine
  • Add virtual workspace support
  • Add workspace trust support
  • Comprehensive remote development support
  • Add cross-platform support
  • Improved sidebar Availability

Click here to install Bookmarks[3]

3. Rest API client: Thunder Client

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Although it is called Thunder, it has nothing to do with Thunder. Its name is Thunder Client, which is a lightweight Rest API client for Visual Studio Code. It is handmade by Ranga Vadhineni and has a simple and clean design.

So, you can uninstall the bloated PostMan.

Click here to install Thunder Client[4]

4. Hover to view the document: Docs View

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

用 VSCode 写 Python,这14个插件不容错过!

Place the cursor on a function or class to display related documents in the sidebar or panel

Click here to install Docs View[5]

5. Code Search: Sourcegraph

Results Demonstration:

用 VSCode 写 Python,这14个插件不容错过!

Sourcegraph’s code search allows you to quickly find and fix content in all your code.

With it, you can search millions of open source repositories for free directly from the VS Code IDE. Learn from useful code examples, search for best practices, and reuse code from millions of repositories in the open source universe.

Additionally, with a free Sourcegraph Cloud account, you can sync your private and public repositories and search all your code in a single view in VS Code.

Sourcegraph’s code intelligence features provide fast cross-repository navigation with Go to Definition and Find References features to quickly understand new code and find answers in codebases of any size.

Click here to install Sourcegraph[6]

6. AI helps you write notes: AI Doc Writer

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Just select the function code and press a shortcut key to automatically generate comments for the method, which can be used to generate function documents. Let artificial intelligence help you write comments in the previous article. Support for Python has been introduced.

Click here to install AI Doc Writer[7]

7. View file size: filesize

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

It displays the size of the focused file in the editor's status bar, and if you click on the status bar component it will display more information about the file.

Click here to install filesize[8]

8. Explain the code: Krinql

If you don’t understand the code, you can ask Krinql to answer, or let it write document characters String:

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Krinql lets you write better code, super fast. It solves the boring parts of writing code, such as writing docstrings. It can also find how to use libraries and automate them in the VS Code editor itself.

Click here to install Krinql[9]

9. GistPad

GistPad allows you to edit GitHub Gists and repositories directly in VSCode. Repositories and repositories can be opened, created, deleted, forked, and starred, then seamlessly start editing files like local files without having to clone, push, or pull anything. It's like your own developer library for building and referencing code snippets, commonly used configurations/scripts, programming related notes, knowledge base, and interactive examples.

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Click here to install GistPad[10]

10. Generate beautiful code screenshots: CodeSnap

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Click here to install CodeSnap[11]

11. Automatic completion: Visual Studio IntelliCode

Effect display :

用 VSCode 写 Python,这14个插件不容错过!

Click here to install Visual Studio IntelliCode[12]

12. Automatic real-time evaluation of Python code: AREPL for Python

Effect display :

用 VSCode 写 Python,这14个插件不容错过!

Click here to install AREPL for Python[13]

13. Check the Python code in real time: Wolf

In other words , you can experience the WYSIWYG experience in the Python interpreter in VSCode, which is functionally similar to AREPL for Python.

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

Click here to install Wolf[14]

14. Add the Gather function to the Jupyter extension

You must have used the Jupyter extension. This plug-in should be used with Jupyter:

用 VSCode 写 Python,这14个插件不容错过!

Effect display:

用 VSCode 写 Python,这14个插件不容错过!

用 VSCode 写 Python,这14个插件不容错过!

Click here to install Gather[15]

The above is the detailed content of Use VSCode to write Python, these 14 plug-ins are not to be missed!. For more information, please follow other related articles on the PHP Chinese website!

Statement
This article is reproduced at:51CTO.COM. If there is any infringement, please contact admin@php.cn delete
How do you append elements to a Python array?How do you append elements to a Python array?Apr 30, 2025 am 12:19 AM

InPython,youappendelementstoalistusingtheappend()method.1)Useappend()forsingleelements:my_list.append(4).2)Useextend()or =formultipleelements:my_list.extend(another_list)ormy_list =[4,5,6].3)Useinsert()forspecificpositions:my_list.insert(1,5).Beaware

How do you debug shebang-related issues?How do you debug shebang-related issues?Apr 30, 2025 am 12:17 AM

The methods to debug the shebang problem include: 1. Check the shebang line to make sure it is the first line of the script and there are no prefixed spaces; 2. Verify whether the interpreter path is correct; 3. Call the interpreter directly to run the script to isolate the shebang problem; 4. Use strace or trusts to track the system calls; 5. Check the impact of environment variables on shebang.

How do you remove elements from a Python array?How do you remove elements from a Python array?Apr 30, 2025 am 12:16 AM

Pythonlistscanbemanipulatedusingseveralmethodstoremoveelements:1)Theremove()methodremovesthefirstoccurrenceofaspecifiedvalue.2)Thepop()methodremovesandreturnsanelementatagivenindex.3)Thedelstatementcanremoveanitemorslicebyindex.4)Listcomprehensionscr

What data types can be stored in a Python list?What data types can be stored in a Python list?Apr 30, 2025 am 12:07 AM

Pythonlistscanstoreanydatatype,includingintegers,strings,floats,booleans,otherlists,anddictionaries.Thisversatilityallowsformixed-typelists,whichcanbemanagedeffectivelyusingtypechecks,typehints,andspecializedlibrarieslikenumpyforperformance.Documenti

What are some common operations that can be performed on Python lists?What are some common operations that can be performed on Python lists?Apr 30, 2025 am 12:01 AM

Pythonlistssupportnumerousoperations:1)Addingelementswithappend(),extend(),andinsert().2)Removingitemsusingremove(),pop(),andclear().3)Accessingandmodifyingwithindexingandslicing.4)Searchingandsortingwithindex(),sort(),andreverse().5)Advancedoperatio

How do you create multi-dimensional arrays using NumPy?How do you create multi-dimensional arrays using NumPy?Apr 29, 2025 am 12:27 AM

Create multi-dimensional arrays with NumPy can be achieved through the following steps: 1) Use the numpy.array() function to create an array, such as np.array([[1,2,3],[4,5,6]]) to create a 2D array; 2) Use np.zeros(), np.ones(), np.random.random() and other functions to create an array filled with specific values; 3) Understand the shape and size properties of the array to ensure that the length of the sub-array is consistent and avoid errors; 4) Use the np.reshape() function to change the shape of the array; 5) Pay attention to memory usage to ensure that the code is clear and efficient.

Explain the concept of 'broadcasting' in NumPy arrays.Explain the concept of 'broadcasting' in NumPy arrays.Apr 29, 2025 am 12:23 AM

BroadcastinginNumPyisamethodtoperformoperationsonarraysofdifferentshapesbyautomaticallyaligningthem.Itsimplifiescode,enhancesreadability,andboostsperformance.Here'showitworks:1)Smallerarraysarepaddedwithonestomatchdimensions.2)Compatibledimensionsare

Explain how to choose between lists, array.array, and NumPy arrays for data storage.Explain how to choose between lists, array.array, and NumPy arrays for data storage.Apr 29, 2025 am 12:20 AM

ForPythondatastorage,chooselistsforflexibilitywithmixeddatatypes,array.arrayformemory-efficienthomogeneousnumericaldata,andNumPyarraysforadvancednumericalcomputing.Listsareversatilebutlessefficientforlargenumericaldatasets;array.arrayoffersamiddlegro

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Atom editor mac version download

Atom editor mac version download

The most popular open source editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 English version

SublimeText3 English version

Recommended: Win version, supports code prompts!

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor