Search code examples
phpphpstormphpdoc

Follow the link from PHPDoc in PhpStorm


Imagine there is code like that:

<?php

class T
{
    /**
     * {@link http://php.net/count}
     * @link http://php.net/count
     *
     * @param array $inputArray
     *
     * @return int
     */
    public static function count(array $inputArray)
    {
        return count($inputArray);
    }
}

If I open a quick documentation window for the method, then there is an HTTP link, which I can click and it'll be opened in browser.

Quick documentation window for method

But I wonder if there is a way to follow the link from @link tag by clicking on it immediately from PhpStorm, without opening the quick documentation window?

I think I remember using this functionality, but I'm not 100% sure, and I could not find any info in the PhpStorm's documentation.


Solution

  • Unfortunately there is a bug in PhpStorm v2016.1 final.

    It's now fixed -- but you have to use 2016.1.1 EAP build or wait until 2016.1.1 final will actually be released.

    2016.1.1 EAP (latest for this moment build) can be downloaded here.