适用于Python的Visual Studio代码缩进 [英] Visual Studio Code indentation for Python
本文介绍了适用于Python的Visual Studio代码缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何在Visual Studio代码中启用缩进?
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代码缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文