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:

  1. Via Project view:
    1. In the Project tool window, hold Ctrl (Windows/Linux) or cmd (macOS) or use Shift to select several files.
    2. Press Enter. All selected files open as separate tabs in the editor.
  2. Via Go to File (Navigate | File… or Ctrl+Shift+O/Cmd+Shift+O):
    1. Press Ctrl+Shift+O (Windows/Linux) or Cmd+Shift+O (macOS) to open the Go to File dialog.
    2. Use Ctrl or Shift (Cmd or Shift on macOS) to select multiple files from the search results.
    3. Press Enter. Selected files open as tabs in the editor.
  3. 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.

0 out of 0 found this helpful

Please sign in to leave a comment.

Have more questions?

Submit a request