Navigate files with the Navigation Bar

Navigate to project files from the navigation bar. No mouse! 🐁

The Problem

We've discussed "getting into the flow"... strip down the IDE to focus and don't take your hands off the keyboard. But if you've turned off your Project tool window, how can you navigate files and directories?

You could use the Project action ⌘1 (macOS) / Alt+1 (Windows/Linux) to bring back the Project tool, do your work, and then hide it again.

The Solution

Instead, temporarily bring back the Navigation Bar then navigate it with the keyboard.In your JetBrains IDE, invoke the "Navigation Bar" with ⌘↑ (macOS) / Alt+Home (Windows/Linux).

You can use the left arrow to go up a directory and right arrow to go down a directory. To see the contents of a directory, either press the down arrow or press (macOS) / Enter (Windows/Linux). With this you can get to any place in the tree, without using the mouse.

left-arrow.png

For looking at the directory the currently-edited file is in, this is even easier. Activating the Navigation Bar makes the current file selected. You don't have to press (macOS) / Up Arrow (Windows/Linux) to select the parent directory. Just press (macOS) / Down Arrow (Windows/Linux).

If you want to know what else the Navigation Bar can do, check out Navigating Like a Pro.


Related Resources

Navigation Bar - All the power!
Navigation Bar - All the power!
The Navigation Bar can do much more than you think!
Find in Path with the Navigation Bar
Find in Path with the Navigation Bar
Use the Navigation bar and Find in File together and be faster than all of your team members.
Speed search with the Navigation Bar
Speed search with the Navigation Bar
Use the keyboard abbreviations to quickly find what you're looking for in the Navigation bar.