Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to create a link to file in PhpDoc block or a comment in PhpStorm?

Is there a feature or a plugin to create a link to a local project file like this:

/**
 * @see ./views/templates/file.twig
 */
public function render()
{
  ..
}

That would very useful for jumping between files.

I've found this plugin, but is seems like it is no longer maintained or not supported in PhpStorm > 2016:

https://plugins.jetbrains.com/plugin/7235?pr=phpStorm

like image 572
gskema Avatar asked Jan 29 '26 22:01

gskema


1 Answers

PhpStorm 2023.2:

/**
 * @see /README.md  # It works
 * @see /.gitignore # It doesn't work (hidden files)
 */
class SomeClass
{
    // ...
}
like image 104
Roman Grinyov Avatar answered Feb 02 '26 16:02

Roman Grinyov