PHP How to initialize fields and import statements with keyboard shortcut

Answered

Hi,

I would like to know how to initialize fields ( class variables ) when passing external class to function parameter, and how to import classes.

Currently, I manage doing this by pointer my cursor on the variable, and clicking on left hand side bulb, but I need a shortcut like this : pointing my cursor on the variable, typing a keyboard shortcut, and BAM, imports are made !

hope I can be understood on this one...

Thanks

 

2 comments
Comment actions Permalink

It's Alt+Enter while the cursor is within the var name, if I got you right. Please try.

3
Comment actions Permalink

That was it, and I just have to click on the willing option afterwards, thanks !

0

Please sign in to leave a comment.