Eclipse坏缩进警告 [英] Eclipse bad indentation warning

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

问题描述

我正在使用PyDev透视图。我在python文件中得到一个不好的缩进警告。我正在使用两个空格进行缩进,日食似乎要我使用4。



如何设置缩进,我想要这个警告消失?

解决方案

您必须更改PyDev使用的标签长度​​:



窗口>首选项> pydev> editor> tab length


I am using PyDev perspective. I get a "bad indentation" warning in python files. I am using two spaces for indent and eclipse seems to want me to use 4.

How to set the indentation I want so this warning goes away?

解决方案

You have to change the tab length that PyDev uses at:

window > preferences > pydev > editor > tab length

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

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