Create a new file using shortcut phpstorm
In PHPStorm, you can create a new file using a shortcut key. The default shortcut key is Ctrl + Shift + Alt + Insert
(Windows/Linux) or Cmd + Shift + Alt + Insert
(Mac).
Here's how to use it:
- Open your project in PHPStorm.
- Place your cursor where you want to create a new file.
- Press the shortcut key
Ctrl + Shift + Alt + Insert
(Windows/Linux) orCmd + Shift + Alt + Insert
(Mac). - In the "Create New" dialog box, select the type of file you want to create (e.g., PHP, HTML, CSS, etc.).
- Enter a name for your file and choose a location to save it.
- Click "Create" to create the new file.
Alternatively, you can also use the "File" menu to create a new file:
- Open your project in PHPStorm.
- Go to the "File" menu.
- Select "New" > "File" (or press
Ctrl + N
on Windows/Linux orCmd + N
on Mac). - In the "Create New" dialog box, select the type of file you want to create (e.g., PHP, HTML, CSS, etc.).
- Enter a name for your file and choose a location to save it.
- Click "Create" to create the new file.
Note: You can customize the shortcut key for creating a new file in PHPStorm by going to Settings
(or Preferences
on Mac) > Keymap
and searching for "Create New File".