Textmate autocompletion and class outline for PHP

2019-02-07 13:36发布

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?

5条回答
狗以群分
2楼-- · 2019-02-07 14:00

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.
查看更多
Bombasti
3楼-- · 2019-02-07 14:04

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.

查看更多
我欲成王,谁敢阻挡
4楼-- · 2019-02-07 14:15

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

查看更多
神经病院院长
5楼-- · 2019-02-07 14:15

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.

查看更多
Rolldiameter
6楼-- · 2019-02-07 14:19

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.

查看更多
登录 后发表回答