python - 在 Python 的 Spyder 编辑器中更改缩进设置

标签 python indentation spyder

我正在使用 Python 的 Spyder 编辑器。 我需要更改缩进设置(例如,让“制表符”表示“4 个空格”)。

我该如何实现?

最佳答案

Spyder v. 4.0 或更高版本:

Tools >>> Preferences >>> Editor >>> Source code >>> Indentation characters

其他版本:

Tools >>> Preferences >>> Editor >>> Advanced settings >>> Indentation characters

关于python - 在 Python 的 Spyder 编辑器中更改缩进设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36187784/

相关文章:

php - 整理 PHP 和 HTML 代码?

python - Anaconda - Spyder 在 Windows 8 上启动非常慢(检查更新?)

python - 使用 tensorflow 使用对象检测代码时无法看到结果

python - DynamoDB 性能差/慢

python - 删除 nan 行,除非单独列中的字符串值 - Pandas

python - 将 “python2” 路径添加到 Windows 7 上的命令行

python - 在 Docker 容器中运行图形进程,分离并重新连接到正在运行的 GUI

python - 使用 Python DictReader 获取特定行和值

Java:IndentingXMLStreamWriter 替代方案?

bash - 在 bash 循环参数列表中注释