A
A
Anton Natarov2016-02-29 03:16:46
phpstorm
Anton Natarov, 2016-02-29 03:16:46

How to view block comments for functions in PhpStorm?

Good afternoon colleagues. Tell me please. How to view while holding Ctrl and comments to parameters on functions or classes?
For example:

/**
     * @param Category[] $categories массив категорий
     * @param int $activeId активные айди
     * @param int $parent дочерний элемент
     * @return array
     */
    private function getMenuItems($categories, $activeId = null, $parent = null)

Actually, if I view this function in other places of the code through Ctrl + hover. Then it shows the incoming line.
$categories, $activeId = null, $parent = null : array

It doesn't actually show what type these variables are, what comment they have. How can I set this up or am I not pressing the correct key combination?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman Bulgakov, 2016-03-10
@HanDroid

under Windows and Linux, the default combination is Ctrl + Q (Quick Documentation) with the cursor on the function name. for OSX like F1 is available.
and viewing the parameters as you have it by default Ctrl + P
5c071965c1d649f3a53e5d047bd7e75d.png

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question