# Recent files and changes

When working on a project, you often need to switch between files and locations you've recently viewed or edited. IntelliJ IDEA provides quick navigation features that help you find and reopen recent files or revisit edited code fragments.

Procedure: Find recent files

You can search for recently opened or edited files using the Recent Files popup.

* To open the Recent Files popup, press `Ctrl+E` (Windows), `⌘ E` (macOS), `⌘ E` (IntelliJ IDEA Classic (macOS)), `⌘ E` (macOS System Shortcuts), `Ctrl+E` (XWin), `Ctrl+E` (GNOME), `Ctrl+E` (KDE), `Ctrl+E` (Emacs), `Ctrl+E` (Sublime Text), `⌘ E` (Sublime Text (macOS)), `Shift+F4` (NetBeans), `Ctrl+Comma` (Visual Studio), `⌃ Comma` (Visual Studio (macOS)), `Ctrl+E` (Eclipse), `⌘ E` (Eclipse (macOS)).

![Recent files](https://resources.jetbrains.com.cn/help/img/idea/2026.2/recent_files.png)

* To show only recently edited files, press `Ctrl+E` (Windows), `⌘ E` (macOS), `⌘ E` (IntelliJ IDEA Classic (macOS)), `⌘ E` (macOS System Shortcuts), `Ctrl+E` (XWin), `Ctrl+E` (GNOME), `Ctrl+E` (KDE), `Ctrl+E` (Emacs), `Ctrl+E` (Sublime Text), `⌘ E` (Sublime Text (macOS)), `Shift+F4` (NetBeans), `Ctrl+Comma` (Visual Studio), `⌃ Comma` (Visual Studio (macOS)), `Ctrl+E` (Eclipse), `⌘ E` (Eclipse (macOS)) again or select the Show edited only option.

* To search for items within the popup, start typing your search query. IntelliJ IDEA filters the results dynamically as you type, showing only the matching items.

![Recent files search](https://resources.jetbrains.com.cn/help/img/idea/2026.2/recent_files_search.png)

Procedure: Find recent locations

You can check your recently viewed or changed code using the Recent Locations popup.

* To open the Recent Locations popup, press `Ctrl+Shift+E` (Windows), `⌘ ⇧ E` (macOS), `⌘ ⇧ E` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ E` (macOS System Shortcuts), `Ctrl+Shift+E` (XWin), `Ctrl+Shift+E` (GNOME), `Ctrl+Shift+E` (KDE), `Ctrl+Shift+E` (Emacs), `Ctrl+Shift+E` (Sublime Text), `⌘ ⇧ E` (Sublime Text (macOS)), `Ctrl+Shift+E` (NetBeans), `Ctrl+Shift+E` (Visual Studio), `Ctrl+Shift+E` (Visual Studio (macOS)), `Ctrl+Shift+E` (Eclipse), `⌘ ⇧ E` (Eclipse (macOS)). The list starts with the latest visited location at the top and contains code snippets.

![Recent Locations popup](https://resources.jetbrains.com.cn/help/img/idea/2026.2/recent_locations_popup.png)

* To show only the locations with changed code, while in the popup, use the `Ctrl+Shift+E` (Windows), `⌘ ⇧ E` (macOS), `⌘ ⇧ E` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ E` (macOS System Shortcuts), `Ctrl+Shift+E` (XWin), `Ctrl+Shift+E` (GNOME), `Ctrl+Shift+E` (KDE), `Ctrl+Shift+E` (Emacs), `Ctrl+Shift+E` (Sublime Text), `⌘ ⇧ E` (Sublime Text (macOS)), `Ctrl+Shift+E` (NetBeans), `Ctrl+Shift+E` (Visual Studio), `Ctrl+Shift+E` (Visual Studio (macOS)), `Ctrl+Shift+E` (Eclipse), `⌘ ⇧ E` (Eclipse (macOS)) shortcut again or select the Show edited only option.

![Show changed only option](https://resources.jetbrains.com.cn/help/img/idea/2026.2/only_changed_code_locations.png)

* To search for a code snippet, in the Recent Locations popup, start typing your search query. You can search by the code text, file name, or [breadcrumbs](using-code-editor.html#breadcrumbs).

![Search locations](https://resources.jetbrains.com.cn/help/img/idea/2026.2/search_locations.png)

* To delete a location entry from the search results, press either `Delete` or `Backspace` (Windows), `⌫` (macOS), `⌫` (IntelliJ IDEA Classic (macOS)), `⌫` (macOS System Shortcuts), `Backspace` (XWin), `Backspace` (GNOME), `Backspace` (KDE), `Backspace` (Emacs), `Backspace` (Sublime Text), `⌫` (Sublime Text (macOS)), `Backspace` (NetBeans), `Backspace` (Visual Studio), `⌫` (Visual Studio (macOS)), `Backspace` (Eclipse), `⌫` (Eclipse (macOS)).

> **Tip:**
> Keep in mind that the deleted location is also removed from the list of entries that you [access with the  shortcut](navigating-through-the-source-code.html#back_forward) .

Procedure: Find recent changes

You can use the Recent Changes list to get a list of recent changes made locally or externally in your project. If necessary, you can revert those changes.

1. In the main menu, go to `View | Recent Changes` `Alt+Shift+C` (Windows), `⌥ ⇧ C` (macOS), `⌥ ⇧ C` (IntelliJ IDEA Classic (macOS)), `⌥ ⇧ C` (macOS System Shortcuts), `Alt+Shift+C` (XWin), `Alt+Shift+C` (GNOME), `Alt+Shift+C` (KDE), `Alt+Shift+C` (Emacs), `Alt+Shift+C` (Sublime Text), `⌥ ⇧ C` (Sublime Text (macOS)), `Alt+Shift+C` (NetBeans), `Alt+Shift+C` (Visual Studio), `Alt+Shift+C` (Visual Studio (macOS)), `Alt+Shift+C` (Eclipse), `Alt+Shift+C` (Eclipse (macOS)).

![the Recent Changes popup](https://resources.jetbrains.com.cn/help/img/idea/2026.2/recent_changes.png)

2. In the Recent Changes tab of the [Local History](local-history.html) tool window, select a change.

The IDE shows you a list of files modified with this change in the panel below.

3. Press `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` (NetBeans), `Enter` (Visual Studio), `⏎` (Visual Studio (macOS)), `Enter` (Eclipse), `⏎` (Eclipse (macOS)) or double-click the file to open the diff viewer where you can check what was changed and revert those changes if necessary.

Procedure: Navigate between changes

If you edit a file that is  [under version control](enabling-version-control.html), IntelliJ IDEA provides several ways to move back and forth with the updates. In particular, you can use the navigation commands, keyboard shortcuts, and the change markers.

* Press `Ctrl+Alt+Shift+Down` (Windows), `⌃ ⌥ ⇧ ↓` (macOS), `⌃ ⌥ ⇧ ↓` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ ↓` (macOS System Shortcuts), `Ctrl+Alt+Shift+Down` (XWin), `Ctrl+Alt+Shift+Down` (GNOME), `Ctrl+Alt+Shift+Down` (KDE), `Ctrl+Alt+Shift+Down` (Emacs), `Ctrl+Alt+Shift+Down` (Sublime Text), `⌃ ⌥ ⇧ ↓` (Sublime Text (macOS)), `Ctrl+Alt+Shift+Down` (NetBeans), `Ctrl+Alt+Shift+N` (Visual Studio), `⌘ ⌥ ⇧ N` (Visual Studio (macOS)), `Ctrl+Alt+Shift+Down` (Eclipse), `⌃ ⌥ ⇧ ↓` (Eclipse (macOS))/ `Ctrl+Alt+Shift+Up` (Windows), `⌃ ⌥ ⇧ ↑` (macOS), `⌃ ⌥ ⇧ ↑` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ ↑` (macOS System Shortcuts), `Ctrl+Alt+Shift+Up` (XWin), `Ctrl+Alt+Shift+Up` (GNOME), `Ctrl+Alt+Shift+Up` (KDE), `Ctrl+Alt+Shift+Up` (Emacs), `Ctrl+Alt+Shift+Up` (Sublime Text), `⌃ ⌥ ⇧ ↑` (Sublime Text (macOS)), `Ctrl+Alt+Shift+Up` (NetBeans), `Ctrl+Alt+Shift+P` (Visual Studio), `⌘ ⌥ ⇧ P` (Visual Studio (macOS)), `Ctrl+Alt+Shift+Up` (Eclipse), `⌃ ⌥ ⇧ ↑` (Eclipse (macOS)).

* In the main menu, go to `Navigate | Next / Previous Change`.

* Click a [change marker](adding-files-to-version-control.html#track_changes), and then click ![the Previous Change button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.up.svg) or ![the Next Change button](https://resources.jetbrains.com.cn/help/img/idea/2026.2/app.expui.general.down.svg).

* To navigate to the place of your last edit, press `Ctrl+Shift+Backspace` (Windows), `⌘ ⇧ ⌫` (macOS), `⌘ ⇧ ⌫` (IntelliJ IDEA Classic (macOS)), `⌘ ⇧ ⌫` (macOS System Shortcuts), `Ctrl+Shift+Backspace` (XWin), `Ctrl+Shift+Backspace` (GNOME), `Ctrl+Shift+Backspace` (KDE), `Ctrl+Shift+Backspace` (Emacs), `Ctrl+Shift+Backspace` (Sublime Text), `⌘ ⇧ ⌫` (Sublime Text (macOS)), `Ctrl+Shift+Backspace` (NetBeans), `Ctrl+Shift+Backspace` (Visual Studio), `⌘ ⇧ ⌫` (Visual Studio (macOS)), `Ctrl+Q` (Eclipse), `⌃ Q` (Eclipse (macOS)) or select `Navigate | Last Edit Location` from the main menu.

