如何在IntelliJ IDEA 2017中打开收藏夹内选中或全部文件
Hey there! I totally get the pain of navigating messy Project views when working on large projects—using the Favorites tab to stay focused is such a smart move. Let’s break down how you can open multiple files (or an entire folder’s contents) from Favorites in one go:
1. Native IntelliJ Actions (No Plugins Needed)
This is probably the simplest way, and you might’ve missed it because it’s right in the right-click menu:
- Open your Favorites tab and locate the folder or files you want to open.
- To select multiple individual files: Hold
Ctrl(Windows/Linux) orCmd(Mac) while clicking each file. For a continuous range, holdShiftand click the first and last file in the set. - To open an entire folder’s direct contents: Right-click the folder in Favorites, then select Open from the menu. It’ll launch all immediate child files in new tabs.
- If you need to include files in subfolders too: Expand the parent folder first, press
Ctrl+A(Windows/Linux) orCmd+A(Mac) to select everything inside, then right-click and choose Open (or just hit Enter).
2. Keyboard Shortcut Hack for Speed
Skip the right-click entirely once you’ve made your selection:
- After picking your files/folder, just press the Enter key—this instantly opens all selected items. Super handy for keeping your workflow moving!
3. Alternative for Recursive/Advanced Bulk Opening
If you need to open every file nested deep in a Favorites folder (including all subfolders), try this workaround:
- Press
Ctrl+Shift+F(Windows/Linux) orCmd+Shift+F(Mac) to open the Find in Path tool. - In the search field, type
*(this matches all file types). - Under the Scope dropdown, select your Favorites list (or a custom scope tied to your Favorites).
- Run the search, then press
Ctrl+A/Cmd+Ato select all results, right-click, and choose Open.
For even more flexibility, you can grab the Multi-File Operations plugin from IntelliJ’s built-in Plugin Marketplace. It adds dedicated bulk actions (like open, move, or delete) that work seamlessly with the Favorites tab.
Hope these tips help you cut down on navigation time and stay focused on your work! 😊
内容的提问来源于stack exchange,提问作者eXPRESS

