当前位置:   article > 正文

visual studio code Python终端运行_黄哥Python:VS Code 10个Python 插件

you must use visual studio to build a python extension on windows. if you ar

转载自

https://medium.com/issuehunt/10-visual-studio-code-extensions-for-python-development-de0be51bbeed​medium.com

Visual Studio Codeis highly extensible and customizable. Take a look at some of the extensions that make Python development in VSCode a better experience.

1. Python by Microsoft

ea41a244f7f78726f27791cc62fa9a0a.png

An extension with rich support for the Python language (including Python 3.6), including features such as linting, debugging, IntelliSense, code navigation, code formatting, refactoring, unit tests, snippets, and more!

This blog post would be flawed if it didn’t feature the official Python extension by Microsoft. I can write the whole article around this extension alone.

GitHub: https://github.com/Microsoft/vscode-python

2. Python Docstring by Nils Werner

308505f4b307775bd84456f5ebfc2281.png

Visual Studio Code extension to quickly generate docstrings for python functions. Quickly generates a docstring snippet that can be tabbed through.

If you are like me who likes to comply with the PEP8 standards, then you must be finding yourself writing a lot of docstrings. This is where this extension comes in handy.

GitHub: https://github.com/NilsJPWerner/autoDocstring

3. Code Runner by Jun Han

0079f89d46510815311f7c6cebe95593.png

Code Runner does what its name suggests. It will execute statements from a variety of languages and output the results to the built-in Output Window.

It will save you the time of switching back and forth between the editor and the terminal.

GitHub: https://github.com/formulahendry/vscode-code-runner

4. Anaconda Extension Pack by Microsoft

The Anaconda Extension Pack is a set of extensions that enhance the experience of Anaconda customers using Visual Studio Code. It includes the following set of Visual Studio Code extensions:

  • Microsoft Python Extension for Visual Studio Code
  • YAML Support by Red Hat

GitHub: https://github.com/Microsoft/vscode-anaconda-extension-pack

5. Trailing Spaces by Shardul Mahadik

Highlight trailing spaces and delete them in a flash! This extension is a port of the popular Sublime Text plugin Trailing Spaces.

Since Python is an indented language, trailing spaces can cause errors.

GitHub: https://github.com/shardulm94/vscode-trailingspaces

6. Better Comments by Aaron Bond

The Better Comments extension will help you create more human-friendly comments in your code. With this extension, you will be able to categorise your annotations into:

  • Alerts
  • Queries
  • TODOs
  • Highlights

I personally don’t believe that the comments are redundant. How many times does it happen to you, that you return to a code base after a break and none of it makes sense? Well, happens a lot to me. That’s why I highly recommend people to documents their code.

And this extension helps me make the most out of my comments.

GitHub: https://github.com/aaron-bond/better-comments

7. Djaneiro — Django Snippets by Scott Barkman

The Python extension by Microsoft pretty much covers everything. They also provide snippets for Python.

But for Django related snippets you should try this extension by Mr Barkman. A collection of snippets for Django templates, models, views, fields & forms.

GitHub: https://github.com/ScottBarkman/vscode-djaneiro

8. flask-snippets by cstrap

Flask snippets collections. Initially ported from PyCharm, TextMate, SublimeText and other editors/IDEs.

In between here I also want to mention the extension called Jinja by wholroyd. This extension adds language colourization support for the Jinja template language to VSCode.

GitHub: https://github.com/cstrap/flask-snippets

9. Code Linting

To enable the code linting in your VSCode, you have to install the linter.

$ pip install pylint

Once the pylint has been installed in your work environment, it'll work out of the box.

10. GitLens — Git supercharged by Eric Amodio

GitLens supercharges the Git capabilities built into Visual Studio Code. It helps you to visualize code authorship at a glance via Git blame annotations and code lens, seamlessly navigate and explore Git repositories, gain valuable insights via powerful comparison commands, and so much more.

After all version control is an integral part of the software development.

GitHub: https://github.com/eamodio/vscode-gitlens

黄哥谈转行当程序员

https://www.bilibili.com/video/av22524233​www.bilibili.com

黄哥谈转行当程序员之二

https://www.bilibili.com/video/av22568243​www.bilibili.com

黄哥Python提醒:转行当程序员修炼之路

黄哥:黄哥Python提醒:转行当程序员修炼之路​zhuanlan.zhihu.com

黄哥Python:提醒要转行当程序员的朋友,学习要分先后主次

黄哥:黄哥Python:提醒要转行当程序员的朋友,学习要分先后主次​zhuanlan.zhihu.com
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/836559
推荐阅读
相关标签
  

闽ICP备14008679号