djang的Komodo 7或8代码完成

2024-09-26 22:53:58 发布

您现在位置:Python中文网/ 问答频道 /正文

我使用komodo7编写django/python代码。在

有一件事是我非常喜欢的,当我使用Eclipse制作python素材时,我可以做到:

assert isinstance([variable],[type])

通过这一点,eclipse可以确定特定变量的编码完成情况。在

有没有办法用科莫多做?在这里,IsInstance的把戏不管用。在


Tags: django代码编码type情况assertvariableisinstance
2条回答
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)的代码完成情况

this similar question的回答(由interjay提供)建议您可以添加如下提示:

if 0: foo = Bar()

在你习惯使用的地方

^{pr2}$

当然没那么漂亮。。。在

编辑:它适用于我,有Komodo EDIT 6.0.3和Komodo EDIT 8.0.0

编辑:我还发现了this,这表示没有其他方法(而且不太可能很快)。在

相关问题 更多 >

    热门问题