Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP custom class and function autocompletion in TextMate project

Is there a bundle which completes my custom classes and functions in a TextMate project?

Like the code hints with PHP core functions?

like image 998
Koen. Avatar asked Feb 28 '23 00:02

Koen.


2 Answers

As far as I know (and tried to find out in the last couple of hours) there is no working possibility for code completing your own PHP classes and functions in TextMate.

On a sidenote: The PHP Code Completion bundle linked as an answer to this question is totally outdated. You should use the official PHP bundle from http://github.com/textmate instead. With this bundle you can at least complete PHP’s built-in functions, display documentation as a tooltip and load PHP’s docs for the selected function in a new window.

The only workaround (and it isn’t so nice compared to real code completion) is to know the TextMate shortcuts for fast navigation between and inside files:

  • ⌘T (Go to File)
  • ⇧⌘T (Go to Symbol)
  • ⌃⌘T (Select Bundle Item)

It is also worth to look inside the PHP bundle in the Bundle Editor and memorize a couple of shortcuts. Once you learned a couple of them it’s as fast as with an IDE and code completion.

like image 179
Rafael Bugajewski Avatar answered Apr 17 '23 05:04

Rafael Bugajewski


Check out textmate php code completion here http://aralbalkan.com/822

like image 23
zaf Avatar answered Apr 17 '23 03:04

zaf