# Bookmarks

> **TL;DR**
> Add bookmark: anonymous `F11` (Windows), `F3` (macOS), `F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ K` (macOS System Shortcuts), `F11` (XWin), `F11` (GNOME), `F11` (KDE), `F11` (Emacs), `Ctrl+F2` (Sublime Text), `⌘ F2` (Sublime Text (macOS)), `F11` (NetBeans), `Ctrl+K, K` (Visual Studio), `⌘ K, K` (Visual Studio (macOS)), `Ctrl+Shift+F11` (Eclipse), `F11` (Eclipse (macOS)), mnemonic `Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS))
>
>
>
> View all bookmarks: `View | Tool Windows | Bookmarks` (`Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)))

> **Note:**
> Bookmarks have replaced Favorites that existed in earlier versions of the IDE.

If you work with large projects, searching for files and folders can be time-consuming. For such cases, IntelliJ IDEA features bookmarks. You can bookmark the necessary lines of code to be able to find them easier. You can also bookmark the project items (files, folders, packages, modules, and classes) that you need more often than other project items.

All your bookmarks are grouped in lists in the Bookmarks tool window that you can open by selecting `View | Tool Windows | Bookmarks` from the main menu or by pressing `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)). The tool window also shows all [breakpoints](using-breakpoints.html)  that are automatically added to the dedicated list once you place them in your code.

![Bookmarks tool window](https://resources.jetbrains.com/help/img/idea/2026.2/bookmarks-tool-window.png)

IntelliJ IDEA has two types of bookmarks:

* Anonymous bookmarks don't have an identifier and allow you to place as many bookmarks as you want. Files and lines marked with anonymous bookmarks have a bookmark icon.

* Mnemonic bookmarks allow you to create bookmarks with numbers (0 to 9) or letters (A to Z). Files and lines marked with mnemonic bookmarks have the corresponding letter or number icon in a frame.

![Adding bookmarks](https://resources.jetbrains.com/help/img/idea/2026.2/ij-bookmarks.png)

## Add bookmarks

IntelliJ IDEA adds your bookmarks to the predefined list in the Bookmarks tool window that is created automatically and has the same name as the project. You can [create more lists](#create-list) and [set another list as default](#change-default-list).

Procedure: Add an anonymous line bookmark

* In the editor, place the caret at a line of code and press `F11` (Windows), `F3` (macOS), `F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ K` (macOS System Shortcuts), `F11` (XWin), `F11` (GNOME), `F11` (KDE), `F11` (Emacs), `Ctrl+F2` (Sublime Text), `⌘ F2` (Sublime Text (macOS)), `F11` (NetBeans), `Ctrl+K, K` (Visual Studio), `⌘ K, K` (Visual Studio (macOS)), `Ctrl+Shift+F11` (Eclipse), `F11` (Eclipse (macOS)).

* Alternatively, right-click the gutter next to the line of code that you want to bookmark and select Add Bookmark.

![Anonymous bookmark placed in the gutter](https://resources.jetbrains.com/help/img/idea/2026.2/ij-anonymous-bookmark.png)

A bookmark icon appears in the gutter next to the bookmarked line.

Procedure: Add a mnemonic line bookmark

1. In the editor, place the caret at a line of code and press `Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS)).

Alternatively, right-click the gutter next to the line of code that you want to bookmark and select Add Mnemonic Bookmark.

2. In the popup that opens, select a number or a letter that you want to use as an identifier for this bookmark.

![Adding a mnemonic bookmark](https://resources.jetbrains.com/help/img/idea/2026.2/ij-add-mnemonic.png)

If the selected mnemonic is already used, the IDE will ask you whether you want to overwrite an existing bookmark with the new one. Select the Don't ask again option to silently overwrite mnemonics.

3. Optionally, provide a description for the new bookmark.

4. 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 click the selected letter or number once again to save the bookmark.

A letter or a number bookmark icon appears in the gutter next to the bookmarked line.

> **Tip:**
> If you want to bring back the confirmation dialog that is shown before replacing an existing mnemonic with a new one, click ![Show Options Menu](https://resources.jetbrains.com/help/img/idea/2026.2/app-client.expui.general.moreVertical.png) in the Bookmarks tool window and enable the Ask Before Rewriting Mnemonic option.

> **Tip:**
> To take a look at all line bookmarks that you have in code, press `Shift+F11` (Windows), `⌘ F3` (macOS), `⇧ F11` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ K` (macOS System Shortcuts), `Shift+F11` (XWin), `Shift+F11` (GNOME), `Shift+F11` (KDE), `Shift+F11` (Emacs), `Shift+F11` (Sublime Text), `Shift+F11` (Sublime Text (macOS)), `Ctrl+Shift+M` (NetBeans), `Ctrl+`` (Visual Studio), `⌃ `` (Visual Studio (macOS)), `Shift+F11` (Eclipse), `⌘ F3` (Eclipse (macOS)) or go to `Edit | Bookmarks | Show Line Bookmarks…` in the main menu.

Procedure: Bookmark files, packages, folders, and modules

1. In the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , right-click an item that you want to bookmark and select `Bookmarks | Add Bookmark` (`F11` (Windows), `F3` (macOS), `F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ K` (macOS System Shortcuts), `F11` (XWin), `F11` (GNOME), `F11` (KDE), `F11` (Emacs), `Ctrl+F2` (Sublime Text), `⌘ F2` (Sublime Text (macOS)), `F11` (NetBeans), `Ctrl+K, K` (Visual Studio), `⌘ K, K` (Visual Studio (macOS)), `Ctrl+Shift+F11` (Eclipse), `F11` (Eclipse (macOS))) or Add Mnemonic Bookmark (`Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS))).

To bookmark multiple items, select them in the tool window, right-click one of them, and select `Bookmarks | Add Bookmarks` (`F11` (Windows), `F3` (macOS), `F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ K` (macOS System Shortcuts), `F11` (XWin), `F11` (GNOME), `F11` (KDE), `F11` (Emacs), `Ctrl+F2` (Sublime Text), `⌘ F2` (Sublime Text (macOS)), `F11` (NetBeans), `Ctrl+K, K` (Visual Studio), `⌘ K, K` (Visual Studio (macOS)), `Ctrl+Shift+F11` (Eclipse), `F11` (Eclipse (macOS))).

2. For mnemonic bookmarks, select a number or a letter that you want to use as an identifier for this bookmark.

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 click the selected letter or number once again to save the bookmark.

Procedure: Bookmark an editor tab

You can bookmark files from editor tabs one by one. These bookmarks will be added to the [default list](#change-default-list).

1. Right-click the tab with the file that you want to bookmark and select `Bookmarks | Add Bookmark` (`F11` (Windows), `F3` (macOS), `F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⇧ K` (macOS System Shortcuts), `F11` (XWin), `F11` (GNOME), `F11` (KDE), `F11` (Emacs), `Ctrl+F2` (Sublime Text), `⌘ F2` (Sublime Text (macOS)), `F11` (NetBeans), `Ctrl+K, K` (Visual Studio), `⌘ K, K` (Visual Studio (macOS)), `Ctrl+Shift+F11` (Eclipse), `F11` (Eclipse (macOS))) to add an anonymous bookmark or Add Mnemonic Bookmark (`Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS))) to add a bookmark with an identifier.

2. For mnemonic bookmarks, select a number or a letter that you want to use as an identifier for this bookmark.

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 click the selected letter or number once again to save the bookmark.

Procedure: Bookmark all editor tabs

You can quickly bookmark all open files and add these bookmarks to the new list.

1. Click the Recent Files, Tab Actions, and More icon ![](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.moreVertical.svg) that is on the tab bar and select `Bookmark Open Tabs`.

2. Name the new list.

You can use this list for new bookmarks [by default](#change-default-list): enable the Use as default list option.

The IDE will create a new list and add to this list all files from the open tabs.

![Bookmark editor tabs](https://resources.jetbrains.com/help/img/idea/2026.2/ij_bookmark_all_editor_tabs.png)

## Navigate between bookmarks

Procedure: Jump to a mnemonic bookmark with a digit

* Hold `Ctrl` (Windows), `Ctrl` (macOS), `Ctrl` (IntelliJ IDEA Classic (macOS)), `Ctrl` (macOS System Shortcuts), `Ctrl` (XWin), `Ctrl` (GNOME), `Ctrl` (KDE), `Ctrl` (Emacs), `Ctrl` (Sublime Text), `Ctrl` (Sublime Text (macOS)), `Ctrl` (NetBeans), `Ctrl` (Visual Studio), `Ctrl` (Visual Studio (macOS)), `Ctrl` (Eclipse), `Ctrl` (Eclipse (macOS)) and press the mnemonic digit on the keyboard.

For example, to jump to the bookmark with mnemonic `5`, press `Ctrl+5` (Windows), `⌃ 5` (macOS), `⌃ 5` (IntelliJ IDEA Classic (macOS)), `⌃ 5` (macOS System Shortcuts), `Ctrl+5` (XWin), `Ctrl+5` (GNOME), `Ctrl+5` (KDE), `Ctrl+5` (Emacs), `Ctrl+5` (Sublime Text), `⌃ 5` (Sublime Text (macOS)), `Ctrl+5` (NetBeans), `Ctrl+5` (Visual Studio), `⌃ 5` (Visual Studio (macOS)), `Ctrl+5` (Eclipse), `⌃ 5` (Eclipse (macOS)).

Procedure: Jump to a mnemonic bookmark with a letter

By default, the shortcuts for navigating to bookmarks with letter mnemonics are not assigned, but you can set your custom shortcuts.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Keymap`.

2. In the list of shortcuts, expand `Other | Bookmarks | Go to by Number/Mnemonic` and configure shortcuts as you like.

3. Press the configured shortcuts to navigate to letter bookmarks in the editor.

Procedure: Navigate line bookmarks

By default, the shortcuts for navigating line bookmarks are not assigned, but you can set custom shortcuts.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Keymap`.

2. In the list of shortcuts, expand `Other | Bookmarks` and configure shortcuts for:

* Next Line Bookmark / Previous Line Bookmark to navigate all line bookmarks.

* Next Line Bookmark in Editor / Previous Line Bookmark in Editor to navigate bookmarks in open files.

Procedure: Navigate line bookmarks in the popup

1. Press `Shift+F11` (Windows), `⌘ F3` (macOS), `⇧ F11` (IntelliJ IDEA Classic (macOS)), `⌘ ⌃ K` (macOS System Shortcuts), `Shift+F11` (XWin), `Shift+F11` (GNOME), `Shift+F11` (KDE), `Shift+F11` (Emacs), `Shift+F11` (Sublime Text), `Shift+F11` (Sublime Text (macOS)), `Ctrl+Shift+M` (NetBeans), `Ctrl+`` (Visual Studio), `⌃ `` (Visual Studio (macOS)), `Shift+F11` (Eclipse), `⌘ F3` (Eclipse (macOS)) or go to `Edit | Bookmarks | Show Line Bookmarks…` in the main menu.

2. Double-click the bookmark or select it with the keyboard and 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)).

For mnemonic bookmarks, press the corresponding digit or letter.

By default, IntelliJ IDEA shows only line bookmarks in the bookmarks popup. You can configure the settings to see other bookmarked items (for example, files or folders): press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open the IDE settings, select Advanced Settings, and disable the Show only line bookmarks in popup option.

Procedure: Navigate to a bookmark from a list

1. In the main menu, go to `View | Tool Windows | Bookmarks` or press `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)) to open the Bookmarks tool window.

2. Expand the desired bookmark list or click Expand all to expand all lists.

3. Double-click a bookmark on the list to navigate to it or press:

* `Ctrl+Alt+Down` (Windows), `⌘ ⌥ ↓` (macOS), `⌘ ⌥ ↓` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ ↓` (macOS System Shortcuts), `Ctrl+Alt+Down` (XWin), `Alt+Shift+Down` (GNOME), `Ctrl+Alt+Down` (KDE), `Ctrl+Alt+Down` (Emacs), `Ctrl+Alt+Down` (Sublime Text), `Ctrl+Alt+Down` (Sublime Text (macOS)), `Ctrl+Alt+Down` (NetBeans), `Ctrl+Alt+Down` (Visual Studio), `⌘ ⌥ ↓` (Visual Studio (macOS)), `Ctrl+Alt+Down` (Eclipse), `Ctrl+Alt+Down` (Eclipse (macOS)) (`Navigate | Next Bookmark Occurrence`) to jump to the next bookmark.

* `Ctrl+Alt+Up` (Windows), `⌘ ⌥ ↑` (macOS), `⌘ ⌥ ↑` (IntelliJ IDEA Classic (macOS)), `⌘ ⌥ ↑` (macOS System Shortcuts), `Ctrl+Alt+Up` (XWin), `Alt+Shift+Up` (GNOME), `Ctrl+Alt+Up` (KDE), `Ctrl+Alt+Up` (Emacs), `Ctrl+Alt+Up` (Sublime Text), `Ctrl+Alt+Up` (Sublime Text (macOS)), `Ctrl+Alt+Up` (NetBeans), `Ctrl+Alt+Up` (Visual Studio), `⌘ ⌥ ↑` (Visual Studio (macOS)), `Ctrl+Alt+Up` (Eclipse), `Ctrl+Alt+Up` (Eclipse (macOS)) (`Navigate | Previous Bookmark Occurrence`) to return to the previous bookmark.

## Modify bookmarks

Procedure: Rename bookmarks

Bookmarks have short descriptions. By default, they contain the code from the line or the name of the item on which they are placed. If necessary, you can give bookmarks your own short descriptions.

1. Hold `Alt` (Windows), `Alt` (macOS), `Alt` (IntelliJ IDEA Classic (macOS)), `Alt` (macOS System Shortcuts), `Alt` (XWin), `Alt` (GNOME), `Alt` (KDE), `Alt` (Emacs), `Alt` (Sublime Text), `Alt` (Sublime Text (macOS)), `Alt` (NetBeans), `Alt` (Visual Studio), `Alt` (Visual Studio (macOS)), `Alt` (Eclipse), `Alt` (Eclipse (macOS)) and click the bookmark icon in the editor gutter.

You can also right-click a bookmark icon in the editor gutter, a bookmarked item in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , or a bookmark in the  Bookmarks  tool window, and select  Rename Bookmark…  .

2. In the dialog that opens, specify a new description and click OK.

![Renaming a bookmark](https://resources.jetbrains.com/help/img/idea/2026.2/ij-rename-bookmarks.png)

You can view descriptions of bookmarks in the Bookmarks tool window, or in the editor: hover over a bookmark icon in the gutter to see a tooltip with the bookmark's description.

Procedure: Assign a mnemonic to an anonymous bookmark

You can convert an anonymous bookmark to a mnemonic one.

1. Right-click a bookmark icon in the editor gutter, a bookmarked item in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS)))  or a bookmark in the Bookmarks tool window, and select Assign Mnemonic (or press `Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS))).

![Assigning mnemonic to anonymous bookmark](https://resources.jetbrains.com/help/img/idea/2026.2/assign_mnemonic_to_bookmark.png)

2. In the popup that opens, select a number or a letter that you want to use as an identifier for this bookmark.

Optionally, provide a description.

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 click the selected letter or number once again to save the bookmark.

Procedure: Change a mnemonic identifier

1. Right-click a bookmark icon in the editor gutter, a bookmarked item in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , and select Change Mnemonic (or press `Ctrl+F11` (Windows), `⌥ F3` (macOS), `⌘ F11` (IntelliJ IDEA Classic (macOS)), `⌃ ⌥ ⇧ K` (macOS System Shortcuts), `Ctrl+F11` (XWin), `Ctrl+F11` (GNOME), `Ctrl+F11` (KDE), `Ctrl+F11` (Emacs), `Ctrl+F11` (Sublime Text), `⌥ F3` (Sublime Text (macOS)), `Ctrl+F11` (NetBeans), `Ctrl+F11` (Visual Studio), `⌥ F3` (Visual Studio (macOS)), `Ctrl+Alt+Shift+F11` (Eclipse), `⌥ F3` (Eclipse (macOS))).

![Changing a mnemonic identifier for a bookmark](https://resources.jetbrains.com/help/img/idea/2026.2/change_mnemonic_for_bookmark.png)

2. In the popup that opens, select another identifier. If necessary, change the description as well.

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 click the selected letter or number once again to save the bookmark.

Procedure: Anonymize mnemonic bookmarks

You can convert a mnemonic bookmark to an anonymous one.

* Right-click a bookmark icon in the editor gutter, a bookmarked item in the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , or a bookmark in the Bookmarks tool window, and select Remove Mnemonic.

## Delete bookmarks

Procedure:

* To delete a bookmark from the Bookmarks tool window  or from the gutter, right-click it and select Delete Bookmark.

* To delete a bookmark from the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , right-click a bookmarked item and select `Bookmarks | Delete Bookmark`.

## Lists of bookmarks

There's one predefined empty bookmark list that has the same name as the project. By default, IntelliJ IDEA adds your bookmarks there. If necessary, you can use another list as the default. You can also create multiple lists and move items between them.

Procedure: Create a bookmark list

1. In the main menu, go to `View | Tool Windows | Bookmarks` or press `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)) to open the Bookmarks tool window.

2. In the tool window, click ![Create Bookmarks List](https://resources.jetbrains.com/help/img/idea/2026.2/app-client.expui.bookmarks.addBookmarksList.png) and name the new list in the dialog that opens.

3. Enable the Use as default list option if you want your bookmarks to go to this list automatically and click Create.

![Creating new bookmark list](https://resources.jetbrains.com/help/img/idea/2026.2/ij-new-bookmarks-list.png)

Procedure: Move a bookmark to another list

* Go to `View | Tool Windows | Bookmarks` or press `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)) to open the Bookmarks tool window and drag a bookmark to another list.

* In the   Project tool window  (`Alt+1` (Windows), `⌘ 1` (macOS), `⌘ 1` (IntelliJ IDEA Classic (macOS)), `⌘ 1` (macOS System Shortcuts), `Alt+1` (XWin), `Alt+1` (GNOME), `Alt+1` (KDE), `Alt+1` (Emacs), `Alt+1` (Sublime Text), `⌘ 1` (Sublime Text (macOS)), `Ctrl+1` (NetBeans), `Ctrl+Alt+L` (Visual Studio), `⌘ ⌥ L` (Visual Studio (macOS)), `Alt+1` (Eclipse), `Alt+1` (Eclipse (macOS))) , right-click a bookmarked item and select `Bookmarks | Add Bookmark to Another List`.

Procedure: Sort bookmarks

* To move a bookmark up or down the list, right-click it in the Bookmarks tool window and select Move Up or Move Down.

* To display line bookmarks in the tool window grouped by file, click ![Options](https://resources.jetbrains.com/help/img/idea/2026.2/app.expui.general.moreVertical.svg) in the Bookmarks tool window and select the Group Line Bookmarks by File option.

Procedure: Change the default list

IntelliJ IDEA adds all your bookmarks to the list that is configured as the default one. If necessary, you can use another default list for your bookmarks.

1. In the main menu, go to `View | Tool Windows | Bookmarks` or press `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)) to open the Bookmarks tool window.

2. Right-click the list that you want to use as your default bookmark list and select Mark List as Default.

The list is now located above others in the tool window and has the Default tag.

![Another default list is configured in Bookmarks tool window](https://resources.jetbrains.com/help/img/idea/2026.2/default-bookmarks-list.png)

Procedure: Delete a list of bookmarks

After you delete a list, all bookmarks from it are removed from code and project items.

1. In the main menu, go to `View | Tool Windows | Bookmarks` or press `Alt+2` (Windows), `⌘ 2` (macOS), `⌘ 2` (IntelliJ IDEA Classic (macOS)), `⌘ 2` (macOS System Shortcuts), `Alt+2` (XWin), `Alt+2` (GNOME), `Alt+2` (KDE), `Alt+2` (Emacs), `Alt+2` (Sublime Text), `⌘ 2` (Sublime Text (macOS)), `Alt+2` (NetBeans), `Alt+2` (Visual Studio), `⌘ 2` (Visual Studio (macOS)), `Alt+2` (Eclipse), `Alt+2` (Eclipse (macOS)) to open the Bookmarks tool window.

2. Right-click the list that you want to delete and select Delete Bookmark List.

## Preserve bookmarks when switching branches

By default, IntelliJ IDEA maintains a separate bookmark context for each VCS branch. When you switch branches, the IDE restores the bookmarks that were saved for that branch, so each branch keeps its own set of bookmarks.

If you want to keep the same bookmarks while switching branches, press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open the IDE settings, select Advanced Settings, and disable the Restore bookmark context on branch switching option. With this option off, IntelliJ IDEA preserves bookmarks when you switch branches, even if file contents differ between branches.

## Video

[Video](https://www.youtube.com/v/2PG03drOEMk)

