Create new file phpstorm shortcut

To create a new file shortcut in PHPStorm, you can follow these steps:

  1. Open PHPStorm and navigate to the "Settings" menu by clicking on the gear icon in the top right corner of the screen or by pressing Ctrl + Shift + Alt + S (Windows/Linux) or Cmd + Shift + Alt + S (Mac).
  2. In the "Settings" window, scroll down and click on "Editor" in the left-hand menu.
  3. In the "Editor" section, click on "File and Code Templates" in the right-hand menu.
  4. In the "File and Code Templates" section, click on the "Manage" button next to "File Templates".
  5. In the "File Templates" window, click on the "New" button to create a new file template.
  6. In the "New File Template" window, enter a name for your new file template in the "Name" field. For example, you could name it "My New File".
  7. In the "Template" field, enter the code that you want to use as the template for your new file. For example, you could enter a basic PHP file template with a <?php tag and a ?> tag.
  8. Click "OK" to create the new file template.
  9. To assign a shortcut to your new file template, click on the "Keymap" menu in the top right corner of the screen or press Ctrl + Shift + Alt + S (Windows/Linux) or Cmd + Shift + Alt + S (Mac).
  10. In the "Keymap" window, scroll down and click on "File" in the left-hand menu.
  11. In the "File" section, click on the "New" button next to "New File".
  12. In the "New File" window, select your new file template from the "Template" dropdown menu.
  13. Click "OK" to assign the shortcut.

Now, whenever you press the shortcut key, PHPStorm will create a new file using your custom file template.

Note: You can also create a shortcut for a specific file type, such as a PHP file or a JavaScript file, by selecting the file type from the "File Type" dropdown menu in the "New File" window.