New in PhpStorm 2017.1 – Parameter Hints

Brand new in 2017.1, we introduce parameter hints to make your code more readable and easier to understand.

PhpStorm 2017.1 now gives you a hint on the parameter name if the parameter is a literal or null:


Notice how you now get the name of the variable you need to pass into a function or method when you call it. This makes understanding what you should be passing much more obvious (assuming you’ve named your parameters something reasonable!).

You can style these parameter hints in the settings; go to Editor | Colors and Fonts | Language Defaults and then select Inline parameter hints. Or you can turn the hints off altogether, by navigating to Editor | General | Appearance and deselecting Show parameter name hints. In the same area, you can configure which methods or functions should be blacklisted and never show parameter hints. An easier way to configure this is to use the Quickfix intention (default Alt+Enter), and then select Do not show hints for current method.

I’ve been using these hints since the earliest EAP for 2017.1 and I’ve grown to love them – give them a try and let us know what you think.

– Gary & The PhpStorm Team

About Gary Hockin

Gary Hockin has been creating code to power web applications for 15 years, the last three of them at an extraordinary level. He is handsome, talented, funny and articulate, and also extremely modest. Gary is a valued contributor to Zend Framework 2 and is a member of the community review team. He's married and has two wonderful children, and when he's not coding, writing about code, speaking about code or reading about code, he can usually be found in the pub playing pool.
This entry was posted in Cool Feature, Newsletter. Bookmark the permalink.