PHP Storm Tricks: Add your USE Statements Automagically!

Recently there are some tricks that we were experimenting with. Like the Alt+Enter+Enter to display the light bulb to add getters/setters for a particular property.

There is a new trick to autoagenerate the use statements. It is basically the same you position your cursor on the Class name that you want to be recognized by PHP Storm, then hit Alt+Enter+Enter and the option will appear to add the use statement, after you select the FQCN and then it will get add to the top of your headers of your php file.

2 thoughts on “PHP Storm Tricks: Add your USE Statements Automagically!

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>