Files
python/VsCode配置/vscode中安装python组件.txt
HuangHai 1f397eca87 'commit'
2025-08-30 18:35:01 +08:00

20 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 下载anaconda
https://www.anaconda.com/products/individual
# Python插件
Python 插件的全称是 Python extension for Visual Studio Code它是一个 Visual Studio Code 扩展,具有对 Python 语言的丰富支持(对于该语言的所有受支持版本:> = 3.6),包括诸如 IntelliSenselinting调试代码导航代码格式Jupyter Notebook 支持,重构,变量之类的功能资源管理器,测试资源管理器,代码段等等!
# 代码补齐
Pylance 是微软推出的一个快速而且功能丰富的Python语言扩展。Pylance 于 2020年7月发布目前在 VS Code 市场中,安装量已有 60多万足见其关注度。
# 自动格式化代码
Yapf 是谷歌开源的一个用于格式化 Python 代码的工具可以一键美化代码。支持两种规范PEP8 和 Google Style 。
# 高亮缩进
当代码缩进层次较多时,为了视觉上容易识别,一般希望可以多个缩进以不同颜色进行高亮显示, VS Code 中 indent-rainbow 插件可以实现这个功能。
# 括号高亮
当代码层次很多时,除了缩进的效果外,还有一个经常遇到的情况,就是各类括号,包括 () 、[]、{} VS Code 中 Bracket Pair Colorizer 插件可以列出来括号高亮的效果,尤其是多组嵌套括号
# 注释高亮
VS Code 扩展市场中,提供了 Better Comments 等类似的插件,来高亮注释。