# 文件导航

> For the complete documentation index, see [llms.txt](https://www.jetbrains.com.cn/help/idea/llms.txt).

IntelliJ IDEA 提供工具和操作，可让您快速定位并打开项目文件。

Procedure: 使用"选择中"弹出窗口导航

可以在   项目   中自动定位文件

1. 如果文件已在编辑器中打开，请按 `Alt+F1` (Windows), `⌥ F1` (macOS), `⌥ F1` (IntelliJ IDEA Classic (macOS)), `⌃ Q` (macOS System Shortcuts), `Alt+F1` (XWin), `Alt+Shift+1` (GNOME), `Alt+Shift+1` (KDE), `Alt+F1` (Emacs), `Alt+F1` (Sublime Text), `⌥ F1` (Sublime Text (macOS)), `Alt+F1` (Visual Studio), `⌥ F1` (Visual Studio (macOS)), `Ctrl+Shift+1` (NetBeans), `Alt+F1` (Eclipse), `⌘ ⌥ W` (Eclipse (macOS)) 打开   在…中选择   弹出窗口。

![在弹出窗口中选择](https://resources.jetbrains.com.cn/help/img/idea/2026.3/Select_in.png)

2. 在弹出窗口中，选择   项目视图   并按下 `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS))。 IntelliJ IDEA 会在   项目   工具窗口中定位目标。

Procedure: 使用导航栏导航到文件

请使用 [导航栏](guided-tour-around-the-user-interface.html#navigation-bar) 作为查找项目路径的便捷工具。

1. 按 `Alt+Home` (Windows), `⌘ ↑` (macOS), `⌥ Home` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ ↑` (macOS System Shortcuts), `Alt+Home` (XWin), `Alt+Home` (GNOME), `Alt+Home` (KDE), `Alt+Home` (Emacs), `Alt+Home` (Sublime Text), `⌥ Home` (Sublime Text (macOS)), `Ctrl+F2` (Visual Studio), `⌘ F2` (Visual Studio (macOS)), `Alt+Home` (NetBeans), `Alt+Home` (Eclipse), `⌘ ⌥ B` (Eclipse (macOS)) 激活导航栏。

2. 使用箭头键或鼠标指针定位所需文件。

3. 双击选中的文件，或按 `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) 在编辑器中打开它。

您可以点击导航栏中的 Java 类或接口查看方法列表。 点击列出的方法之一，可在编辑器中快速导航到该方法。

![导航栏：方法列表](https://resources.jetbrains.com.cn/help/img/idea/2026.3/new_ui_navigation_bar.png)

Procedure: 访问文件位置

可以快速导航到当前正在编辑的文件所在位置。

* 按 `Ctrl+Alt+F12` (Windows), `⌘ ⌥ F12` (macOS), `⌘ ⌥ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ F12` (macOS System Shortcuts), `Ctrl+Alt+Shift+2` (XWin), `Ctrl+Alt+Shift+2` (GNOME), `Ctrl+Alt+Shift+2` (KDE), `Ctrl+Alt+F12` (Emacs), `Ctrl+Alt+F12` (Sublime Text), `⌘ ⌥ F12` (Sublime Text (macOS)), `Ctrl+Alt+F12` (Visual Studio), `Ctrl+Alt+F12` (Visual Studio (macOS)), `Ctrl+Alt+F12` (NetBeans), `Ctrl+Alt+F12` (Eclipse), `Ctrl+Alt+F12` (Eclipse (macOS))，或在编辑器中的任意位置右键点击并选择  `在 Finder 中打开` 。

Procedure: 浏览文件路径

可以从当前正在编辑的文件路径访问任何目录。

1. 按 `Ctrl+Alt+F12` (Windows), `⌘ ⌥ F12` (macOS), `⌘ ⌥ F12` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ F12` (macOS System Shortcuts), `Ctrl+Alt+Shift+2` (XWin), `Ctrl+Alt+Shift+2` (GNOME), `Ctrl+Alt+Shift+2` (KDE), `Ctrl+Alt+F12` (Emacs), `Ctrl+Alt+F12` (Sublime Text), `⌘ ⌥ F12` (Sublime Text (macOS)), `Ctrl+Alt+F12` (Visual Studio), `Ctrl+Alt+F12` (Visual Studio (macOS)), `Ctrl+Alt+F12` (NetBeans), `Ctrl+Alt+F12` (Eclipse), `Ctrl+Alt+F12` (Eclipse (macOS))，或在编辑器中的任意位置右键点击，然后从上下文菜单中选择  `在以下位置打开 | 文件路径` 。

2. 在   在 Finder 中显示   弹出窗口中，选择要导航到的位置，然后按 `Enter` (Windows), `⏎` (macOS), `⏎` (IntelliJ IDEA Classic (macOS)), `⏎` (macOS System Shortcuts), `Enter` (XWin), `Enter` (GNOME), `Enter` (KDE), `Enter` (Emacs), `Enter` (Sublime Text), `⏎` (Sublime Text (macOS)), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (NetBeans), `Enter` (Eclipse), `⏎` (Eclipse (macOS))。

![文件路径查找器](https://resources.jetbrains.com.cn/help/img/idea/2026.3/file_path_finder.png)

