Introducing the Create Class Action

When PhpStorm 10 spots that you’ve referenced a class that doesn’t exist, the inspection will highlight the class name and show a warning. Using the new Create Class action means you can create the missing class quickly and easily.

Create Class action

With your caret over the missing class name, simply press Alt+Enter to fire the “quick fix” menu, then select Create class to open the Create New Class dialog. The class name and file name (plus the namespace if appropriate) will be pre-filled in the dialog, so in most cases you’ll only need to hit OK to create the class and open it in the editor.

Keep up with the latest PhpStorm news on our blog and follow us on Twitter @phpstorm.

Develop with pleasure!
– JetBrains 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 and tagged . Bookmark the permalink.