Argument hint to show path suggestions

Is it possible to hint phpstorm to show path suggestions for a specific argument?
Something like

/**
@paramHint completePath $path
*/
function compile_template($path){

}

2 comments
Comment actions Permalink

Hi there,

Unfortunately not.

But you can use Language Injection and manually inject "File Reference" in it when calling such function.

Yes, it's a temp workaround as 1) injection is temporal and 2) needs to be done manually when using that function (on every function usage) which is not convenient for sure.

screen01.png

screen02.png

screen02.png

P.S.
https://youtrack.jetbrains.com/issue/WI-20028 -- watch thise ticket (star/vote/comment) to get notified on progress.

0

Please sign in to leave a comment.