我使用Komodo 7来编写我的django/python代码。
当我将Eclipse用于我的python工具时,有一件事我真的很喜欢,那就是我可以做:
assert isinstance([variable],[type])并通过该帮助eclipse确定特定变量的编码完成。
有没有办法用Komodo来做呢?IsInstance技巧在这里不起作用。
发布于 2013-03-16 06:10:53
对this similar question的回答(通过interjay)建议您可以添加如下提示:
if 0: foo = Bar()在你习惯使用的地方
assert isinstance(foo, Bar)当然,不是那么漂亮。
编辑:适用于我,使用Komodo Edit 6.0.3和Komodo Edit 8.0.0
编辑:我还找到了this,这表明没有其他方法(而且不太可能很快)。
发布于 2013-03-16 09:39:47
Go to Edit > Preferences.
Expand the "Languages" group by clicking the [+] symbol.
Click "Python".
Click the little "Add..." button under "Additional Python Import Directories".
Add the directory ABOVE your project and you should have intellisense enabled.这将允许您查看项目文件的代码完成(Django)
https://stackoverflow.com/questions/15290571
复制相似问题