This extension is officially provided by Microsoft , Support but not limited to the following functions :
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 .
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 .
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 .
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 .
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 .