Open multiple files as tabs: selecting files in editor and Go to File dialog
Question
Is it possible to open multiple files at once as tabs in the editor by providing a list of files?
Answer
It is possible to open multiple files as tabs in the editor by using the following methods:
-
Via Project view:
- In the Project tool window, hold Ctrl (Windows/Linux) or cmd (macOS) or use Shift to select several files.
- Press Enter. All selected files open as separate tabs in the editor.
-
Via Go to File (Navigate | File… or Ctrl+Shift+O/Cmd+Shift+O):
- Press Ctrl+Shift+O (Windows/Linux) or Cmd+Shift+O (macOS) to open the Go to File dialog.
- Use Ctrl or Shift (Cmd or Shift on macOS) to select multiple files from the search results.
- Press Enter. Selected files open as tabs in the editor.
- Via command line: Provide a list of file paths separated by space to the IDE executable. All files will be opened as tabs in the editor. For example in Windows:
phpstorm64.exe %path%\file1.php %path%\file2.php
For more details, see Opening files from the command line in JetBrains IDEs.
Please sign in to leave a comment.