I'm using pydev and eclipse, while working on a django project that has about 30 modules. I usually use CTRL+SHIFT+R to open a file in eclipse. But when I'm looking for a views.py file and type in 'views', I get 30 files which are all named views.py. The module name is shown behind the filename, but with 30 files it still takes me a while to find the right one. When I type in the module name too, all files disappear.
我正在使用pydev和eclipse,同时处理一个有大约30个模块的django项目。我通常使用CTRL + SHIFT + R在eclipse中打开一个文件。但是当我在寻找一个views.py文件并输入'views'时,我得到了30个文件,这些文件都被命名为views.py。模块名称显示在文件名后面,但是有30个文件,我还需要一段时间才能找到合适的文件。当我输入模块名称时,所有文件都会消失。
So my question: Is there a way to quickly acces a views.py file (or models.py file for that matter) of a specific module in eclipse, using pydev?
所以我的问题:有没有办法快速访问eclipse中特定模块的views.py文件(或者models.py文件),使用pydev?
1 个解决方案
#1
1
In recent versions of PyDev, modules also appear in Ctrl+Shift+T.
在最新版本的PyDev中,模块也出现在Ctrl + Shift + T中。
There, say you have the views.py in a structure my_project.my_app.views.py, you could put in your search 'm.m.views' and it should be able to point you to the views.py in the my_project.my_app.
在那里,假设你在结构my_project.my_app.views.py中有views.py,你可以放入搜索'm.m.views',它应该能够指向my_project.my_app中的views.py.
Note that if you know a function inside views.py you can type that function directly.
请注意,如果您知道views.py中的函数,则可以直接键入该函数。
#1
1
In recent versions of PyDev, modules also appear in Ctrl+Shift+T.
在最新版本的PyDev中,模块也出现在Ctrl + Shift + T中。
There, say you have the views.py in a structure my_project.my_app.views.py, you could put in your search 'm.m.views' and it should be able to point you to the views.py in the my_project.my_app.
在那里,假设你在结构my_project.my_app.views.py中有views.py,你可以放入搜索'm.m.views',它应该能够指向my_project.my_app中的views.py.
Note that if you know a function inside views.py you can type that function directly.
请注意,如果您知道views.py中的函数,则可以直接键入该函数。