Sublime Forum

Get fonctions and method from another file included

#1

Hello,

It will be great if we can have completion on functions, methods and attributs from another files.

This is an exemple with PHP

file1.php

<?php class File1{ public function test_method( ){ //do something } } ?>

file2.php

<?php require_once('file1.php') ; //include file $file = new File1() ; $file-> //here, autocompletion show me the method test_method() of class File1 ! ?>

If you wan’t to see it in action, you can test with komodo edit

regards

0 Likes

CodeIntel question - get only object's methods
#2

Have you looked at the SublimeCodeIntel package?

0 Likes

#3

Wahou !
I’ll try it immediately !

edit : it works great !!! the missing function of sublime text 2 (for me) !

Thanks a lot

0 Likes