alienhard / SublimeAllAutocomplete

Extend Sublime autocompletion to find matches in all open files of the current window
917 stars 110 forks source link

Doesn't do arguments for functions #19

Closed nathggns closed 11 years ago

alienhard commented 11 years ago

Can you please clarify and give an example?

nathggns commented 11 years ago

Say I have the following file

<?php
// functions.php
/**
 * Remove an item from an array and return the item
 * @param  string $needle   Key of the item
 * @param  array  $haystack The array to remove the item from
 * @return mixed            The item you removed
 */
function array_remove($needle, &$haystack) {
    $var = $haystack[$needle];
    unset($haystack[$needle]);

    return $var;
}

And then in index.php I start to type array_rem and autocomplete, I'll just get array_remove but not array_remove($needle, $haystack) with tab stops.

alienhard commented 11 years ago

Thanks for the details.

This is out of scope of this package. I.e., not a supported feature and there are no plans to implement it. Sorry...

Maybe https://github.com/SublimeCodeIntel/SublimeCodeIntel works for you and supports this?