开发者

Emacs for Python programming: module/class outline/browser

开发者 https://www.devze.com 2023-03-09 02:33 出处:网络
I am currently using https://github.com/fgallina/python.el + ropemacs, but I am missing module browser: separate buffer that outlines names defined in the current module (list of classes with their me

I am currently using https://github.com/fgallina/python.el + ropemacs, but I am missing module browser: separate buffer that outlines names defined in the current module (list of classes with their methods). Google says that there are OO-browser and emacs-code-browser, but they looks o开发者_开发知识库utdated and I can't find any mentions about this libs in any of popular emacs + python tutorials. What should I use to achieve easy navigation across the module?


I think ECB (Emacs Code Browser) is worth a try. I don't use it all the time but it can be very handy. Especially useful is the "ECB Methods" window which displays an outline of all members of a module.

Here is a screenshot with the ECB Methods window in the lower left corner: http://dev.pocoo.org/~gbrandl/emacs2.png.

See also http://www.emacswiki.org/emacs/EmacsCodeBrowser.


Maybe occur can be helpful in this case. For example, if you want to list the defined functions: M-x occur RET def RET should visit a buffer where the def's are listed.


M-x speedbar might get you what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消