Textmate autocompletion and class outline for PHP project [closed]

…衆ロ難τιáo~ 提交于 2019-11-30 14:25:12

问题


I'm using PDT, but want to switch to any lightweit editor. First I want to try Textmate. Eclipse has several useful features:

  • class outlile to get list of properties and methods (with signature) to navigate;
  • type hierarchy, it is like class outlile but it shows full inheritance tree;
  • autocompletion for custom classes names, methods etc. (not only for standard functions);
  • go to declaration feature

Does Textmate provide this features, or is there bundles to get such functional?


回答1:


I know it can be frightening — it was for me — but you can code very efficiently with Vim. It's definetly not a turnkey solution but if you have some time between projects it's worth it.

  • Taglist and tagbar are plugins that provide code navigation.
  • There are a number of solutions for autocompletion.
  • you can go to declaration with gd in a single file or with exuberant ctags and ctrl-] in more complex situations.



回答2:


You can get auto completion in TextMate for PHP using the tm-completion bundle. In doesn't work anything as good as what you might see in other IDEs like Eclipse or Visual Studio, xCode. But is works.

Standard PHP completion is supported. See the PHP Bundle -> Support -> Help




回答3:


TextMate has a 30 day trial, so give it a go and see how it is for you.

I use Coda, which has class outline and autocompletion for native PHP functions, but not custom classes.




回答4:


no, i don't think there's any of these - Textmate is a text editor, not a full-blown IDE.

default php bundle provides autocompletion and code hints... but only for built-in functions.

"go to symbol" command brings up class and functions outline... but only for the current file.




回答5:


For quickly browsing to classes, functions and methods in a file, there is the TmCodeBrowser plugin. It uses Exuberant CTags to index the various code types.



来源:https://stackoverflow.com/questions/3781423/textmate-autocompletion-and-class-outline-for-php-project

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