在 Python 的 Spyder 编辑器中更改缩进设置
Changing indentation settings in the Spyder editor for Python
我正在为 Python 使用 Spyder 编辑器。
我需要更改缩进设置(例如,让 "tab" 表示“4 个空格”)。
我该如何完成?
Spyder v. 4.0 或更高版本:
Tools >>> Preferences >>> Editor >>> Source code >>> Indentation
characters
其他版本:
Tools >>> Preferences >>> Editor >>> Advanced settings >>> Indentation
characters
转到>>>菜单栏中的工具
首选项 >>> 编辑器 >>> 高级设置 >>> 缩进字符
设置缩进字符:为“4 个空格”
欢呼!任务完成
在 Mac w/ Spyder 4.0.1 上,它是
Python -> 首选项 -> 编辑器 -> 源代码(制表符) -> 缩进字符
我正在为 Python 使用 Spyder 编辑器。 我需要更改缩进设置(例如,让 "tab" 表示“4 个空格”)。
我该如何完成?
Spyder v. 4.0 或更高版本:
Tools >>> Preferences >>> Editor >>> Source code >>> Indentation characters
其他版本:
Tools >>> Preferences >>> Editor >>> Advanced settings >>> Indentation characters
转到>>>菜单栏中的工具
首选项 >>> 编辑器 >>> 高级设置 >>> 缩进字符
设置缩进字符:为“4 个空格”
欢呼!任务完成
在 Mac w/ Spyder 4.0.1 上,它是
Python -> 首选项 -> 编辑器 -> 源代码(制表符) -> 缩进字符