程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Six best vs code extensions for Python

編輯:Python

1. Python extension for Visual Studio Code

This extension is officially provided by Microsoft , Support but not limited to the following functions :

  • adopt Pylint or Flake8 Support code checking
  • stay VS Code Debug code in the editor
  • IntelliSense Support autocomplete , Code navigation and formatting .
  • Support Jupyter Notebook,Pytest and Unittest
  • Switch easily in the editor Python Environmental Science

2.Git Graph

This thing is Git Artifact , Comparable to Pycharm Internal Git Manager .

Through this extension , You can clearly see the of the current branch commit Record and change , You can easily create... By means of buttons 、 Switch branches 、cherry pick、merge Wait for the operation .

Contrast branch 、 View uncommitted changes ...... There are also many customizable extension settings .

3.Python Snippets

A lot of times , The code snippets we use are similar , such as for loop 、try/catch wait , Now with this tool , We just need to enter commands to generate code fragments , Then fine tune , You can complete the development of functions .

Besides , Sometimes we may forget the usage of some built-in functions , This tool can also provide you with sample code for reference , You don't have to go to search engines to search for examples , It's really very convenient .

4.Better Comments

This is a tool that allows you to write comments better , It can highlight code snippets in different colors according to keywords . The following types of highlighting are supported :

1. Exclamatory mark “!” Code warning . 2. question mark “?” The representative has questions . 3. TODO What the code will do in the future . 4. @param Parameters

Besides , It also supports customizing the first keyword of the sentence that needs to be highlighted in the setting .

5.autoDocstring

I should have recommended this extension many times , It can automatically generate the annotation format of the function , adopt tab Key to quickly switch filling blocks and write corresponding comments .

6.Python Indent

Do you think VSCode In the Python The auto indent of is a little inaccurate ? It can even be used “ ugly ” To describe . Every time I like forced correction VSCode Auto indent for me .

After a search , I finally found a way to correct VSCode Indent wrong extension , It is Python Indent, Take a look at the following example , I'm sure you'll install it too .

This is the end of our article , If you like today's Python Practical course , Please keep an eye on me .


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved