In the tool window, click and name the new list in the dialog that opens.Įnable the Use as default list option if you want your bookmarks to go to this list automatically and click Create.įrom the main menu, select View | Tool Windows | Bookmarks or press ⌥ 2 to open the Bookmarks tool window and drag a bookmark to another list. You can also create multiple lists and move items between them. If necessary, you can use another list as the default. By default, IntelliJ IDEA adds your bookmarks there. There's one predefined empty bookmarks list that has the same name as the project. To delete a bookmark from the Project tool window, right-click a bookmarked item and select Bookmarks | Delete Bookmark. To delete a bookmark from the Bookmarks tool window or from the gutter, right-click it and select Delete Bookmark. To rename a bookmark from the Project tool window, right-click it and select Bookmarks | Rename Bookmark. You can also rename a bookmark from the gutter: click the bookmark icon and provide a new description. In the dialog that opens, specify a new description and click OK. Select a bookmark and click on the toolbar. If necessary, you can give bookmarks your own short descriptions.įrom the main menu, select View | Tool Windows | Bookmarks or press ⌥ 2 to open the Bookmarks tool window.
By default, they contain the code from the line or the name of the item on which they are placed. In the Bookmarks tool window, bookmarks have short descriptions.
Rename and delete bookmarks Rename bookmarks Right-click an anonymous bookmark and select Assign Mnemonic. Place the caret at a bookmarked line of code or select a bookmarked item in the Project tool window ( Alt+1) and press Ctrl+F11.
The corresponding icon appears in the Project tool window next to the bookmarked item. In the Project tool window ( Alt+1), right-click an item that you want to bookmark and select Bookmarks | Add Bookmark ( F11) or Add Mnemonic Bookmark ( Ctrl+F11).įor mnemonic bookmarks, select a number or a letter that you want to use as an identifier for this bookmark. Bookmark files, packages, folders, and modules To take a look at all line bookmarks that you have in code, press Shift+F11. If you want to bring back the confirmation dialog that is shown before replacing an existing mnemonic with a new one, click in the Bookmarks tool window and enable the Ask Before Rewriting Mnemonic option. Select the Don't ask again option to silently overwrite mnemonics.Ī letter or a number bookmark icon appears in the gutter next to the bookmarked line. If the selected mnemonic is already used, the IDE will ask you whether you want to overwrite an existing bookmark with the new one. In the popup that opens, select a number or a letter that you want to use as an identifier for this bookmark. In the editor, place the caret at a line of code and press Ctrl+F11.Īlternatively, right-click the gutter next to the line of code that you want to bookmark and select Add Mnemonic Bookmark. In the editor, place the caret at a line of code and press F11.Īlternatively, right-click the gutter next to the line of code that you want to bookmark and select Add Bookmark.Īn orange bookmark icon appears in the gutter next to the bookmarked line. You can create more lists and set another list as default. 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.
Files and lines marked with mnemonic bookmarks have the corresponding letter or number icon in an orange frame. Mnemonic bookmarks allow you to create bookmarks with numbers (0 to 9) or letters (A to Z). Files and lines marked with anonymous bookmarks have an orange bookmark icon. IntelliJ IDEA has two types of bookmarks:Īnonymous bookmarks don't have an identifier and allow you to place as many bookmarks as you want. The tool window also shows all breakpoints that are automatically added to the dedicated list once you place them in your code. You can also bookmark the project items (files, folders, packages, modules, and classes) that you need more often than other project items.Īll 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 ⌥ 2. You can bookmark the necessary lines of code to be able to find them easier. For such cases, IntelliJ IDEA features bookmarks that can make navigation faster. If you work with large projects, searching for these files and folders can be time-consuming. As you work on an application, there's normally a number of files or folders that you need more often than the rest of the project.