如何在komodo for python中为每个选项卡配置4个空格?

时间:2022-11-26 20:42:05

I am using komodo-edit (Komodo Edit, version 8.5.0, build 13638, platform macosx) to write python code. Whenever I press the 'tab' key I want the editor to insert 4 spaces. The preference looks like this:

我正在使用komodo-edit(Komodo Edit,版本8.5.0,build 13638,platform macosx)来编写python代码。每当我按下'tab'键时,我希望编辑器插入4个空格。偏好看起来像这样:

如何在komodo for python中为每个选项卡配置4个空格?

To me this configuration looks fine. But when I press 'tab' in the editor, it looks like two 4-space wide tabs are inserted! What is wrong? How to configure komodo-edit in oder it inserts 4 spaces whenever I press the 'tab' key?

对我来说这个配置看起来很好。但是当我在编辑器中按“标签”时,它看起来像插入了两个4空格的标签!怎么了?如何在oder中配置komodo-edit每按一次'tab'键就会插入4个空格?

Note: I am using this on a mac. Maybe its a mac issue...?

注意:我在mac上使用它。也许这是一个mac问题......?

3 个解决方案

#1


0  

Well, it is not a mac issue. You just need to uncheck the Force shallow indent at string start and try again.

嗯,这不是一个mac问题。您只需要在字符串start处取消选中Force shallow indent,然后重试。

#2


0  

Install komodo-edit 11. Seems to be a bug in version 8.5

安装komodo-edit 11.似乎是8.5版中的错误

#3


0  

Do you have to use tab? I mean, can you just type 4 spaces manually? Or maybe tab just looks like that and actually works the same.

你必须使用标签吗?我的意思是,你能手动输入4个空格吗?或者也许tab只是看起来像那样,实际上也是一样的。

#1


0  

Well, it is not a mac issue. You just need to uncheck the Force shallow indent at string start and try again.

嗯,这不是一个mac问题。您只需要在字符串start处取消选中Force shallow indent,然后重试。

#2


0  

Install komodo-edit 11. Seems to be a bug in version 8.5

安装komodo-edit 11.似乎是8.5版中的错误

#3


0  

Do you have to use tab? I mean, can you just type 4 spaces manually? Or maybe tab just looks like that and actually works the same.

你必须使用标签吗?我的意思是,你能手动输入4个空格吗?或者也许tab只是看起来像那样,实际上也是一样的。