Python的代码缩进 [英] VS Code indentation for Python

查看:517
本文介绍了Python的代码缩进的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我试图学习Python(编程中的新手),并需要自动缩进。它与我尝试的第一个版本一起工作,但不会在冒号()之后缩进。如何配置它自动缩进?

解决方案

您可以安装VSCode python扩展,它将提供intellisense,自动完成,代码格式化和调试。以下是有关Python扩展的更多信息:
此处


How do I enable indentation in VS Code?

I'm trying to learn Python (newbie in programming) and need auto-indentation. It worked with the first version I tried, but it doesn't indent after a colon (:) anymore. How can I configure it to automatically indent?

解决方案

You can install VSCode python extension which will provide intellisense, auto-completion, code formatting, and debugging. Here is more information on the python extension, here

这篇关于Python的代码缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆