Visual Studio Code indentation for Python(适用于 Python 的 Visual Studio Code 缩进)
问题描述
如何在 Visual Studio Code 中启用缩进?
How do I enable indentation in Visual Studio Code?
我正在尝试学习 Python(编程新手)并且需要自动缩进.它适用于我尝试的第一个版本,但它不再在冒号 (:
) 后缩进.如何将其配置为自动缩进?
I'm trying to learn Python (new to programming) and need auto-indentation. It worked with the first version I tried, but it doesn't indent after a colon (:
) any more. How can I configure it to automatically indent?
推荐答案
您可以安装 Visual Studio Code Python 扩展,它将提供智能感知、自动完成、代码格式化和调试.
You can install the Visual Studio Code Python extension which will provide intellisense, auto-completion, code formatting, and debugging.
这里是关于 Python 扩展的更多信息,这里.
Here is more information on the Python extension, here.
这篇关于适用于 Python 的 Visual Studio Code 缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:适用于 Python 的 Visual Studio Code 缩进


基础教程推荐
- 对多索引数据帧的列进行排序 2022-01-01
- 究竟什么是“容器"?在蟒蛇?(以及所有的 python 容器类型是什么?) 2022-01-01
- 比较两个文本文件以找出差异并将它们输出到新的文本文件 2022-01-01
- 在 Django Admin 中使用内联 OneToOneField 2022-01-01
- Kivy 使用 opencv.调整图像大小 2022-01-01
- 在 Python 中将货币解析为数字 2022-01-01
- Python,确定字符串是否应转换为 Int 或 Float 2022-01-01
- kivy 应用程序中的一个简单网页作为小部件 2022-01-01
- Python 中是否有任何支持将长字符串转储为块文字或折叠块的 yaml 库? 2022-01-01
- matplotlib 设置 yaxis 标签大小 2022-01-01