在 Coda 中重新缩进/整理 Python 代码的最简单方法?

发布于 2024-10-08 14:00:40 字数 131 浏览 0 评论 0原文

有人有一种巧妙的方法可以在 Mac 版 Coda 编辑器中快速修复 Python 文档中的缩进问题吗?

有人说 reindent.py 是最好的选择,但它甚至没有随 Python 的所有版本一起提供。想法?

Anyone have a clever way of quickly fixing indentation problems in Python documents in the Coda editor for Mac?

Some have said that reindent.py is the way to go, but it doesn't even ship with all versions of Python. Thoughts?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

橘亓 2024-10-15 14:00:40

您可以从以下链接获取reindent.pyhttp://svn.python.org/view/python/trunk/Tools/scripts/reindent.py?revision=66903&view=markup

(注:来自旧 Alex Martelli 评论的原始链接,我已经丢失了该评论的参考资料。

You can get reindent.py from the following link: http://svn.python.org/view/python/trunk/Tools/scripts/reindent.py?revision=66903&view=markup

(Note: Original link from an old Alex Martelli comment whose reference I've lost.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文