SublimeText2: How do I include some method/Class and have Sublime suggest it to me?

喜你入骨 提交于 2020-01-16 18:51:31

问题


I am using SQLAlchemy with Sublime Text2 and I did the following

from sqlalchemy import Column
from sqlalchemy.ext.declarative import declarative_base

Base = declarative_base()
# engine = create_engine('sqlite:///:memory:', echo=True)


class Transaction(Base):
    __tablename__ = 'transaction'
    id = Column()

I want Sublime to see my imports/site-packages and suggest me to import it like what IntelliJ IDEA and Eclipse does.
Does Sublime Text2 support this intelligence?

Thank you


回答1:


The Sublime CodeIntel plugin provides this functionality for you. Installation instructions at link.



来源:https://stackoverflow.com/questions/15301477/sublimetext2-how-do-i-include-some-method-class-and-have-sublime-suggest-it-to

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!