Search code examples
phpsublimetext2code-completion

Sublime text, how to auto-import implemented interface methods


I'm just trying to find out how can I auto-import methods of an implemented interface.

Example:

//LoaderInterface.php
interface LoaderInterface
{
    public function load($endpoint);
}

//myLoader.php
class myLoader implements LoaderInterface

and here after writing implements LoaderInterface I would use some command to ends up with

//myLoader.php
class myLoader implements LoaderInterface
{
    public function load($endpoint)
    {
        //do something
    }
}  

I've tried sublimeCodeIntel but it seems to me that is not possible, or am I doing wrong?


Solution

  • Because I couldn't find something helpful, I've now decided to try to write my first plugin. At my first experience in Python.

    Just in case someone could use it or help me improve this plugin.

    https://github.com/ilpaijin/Sublime-Text-2-AutoimportSignature-Plugin