Alexander Guz
Alexander Guz

Reputation: 1364

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.

Upvotes: 1

Views: 483

Answers (2)

axiac
axiac

Reputation: 72177

Ctrl-click on Windows (and Linux, I suppose) and Cmd-click on OSX opens the URL in the browser.

Upvotes: 0

LazyOne
LazyOne

Reputation: 165088

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.

Upvotes: 3

Related Questions