Reputation: 8281
I know I can toggle (set and clear) bookmarks in Android Studio (I have 2.2.2) using F11. But is there any similarly simple way to just go to the next bookmark? The only way I've found to go to the next bookmark is buried in the navigation menu - Navigate > Bookmarks > Next Bookmark. Is there some way to assign a function key to that?
Upvotes: 36
Views: 28395
Reputation: 2508
Ctrl + Shift + 1
to add a bookmark with the label 1
Ctrl + 1
to go to that bookmark
You can use the same process with other numbers as well. for example, Ctrl+Shift+2
will add the bookmark with label 2
, and so on...
Upvotes: 1
Reputation: 4102
On Mac and Android Studio 4 You can do the following
Setting A Book Mark
Right click on the line counter pane and set bookmark
Clear The Bookmark
Right click on the line counter pane and clear the bookmark
Navigate To Bookmarks
Go to Navigate -> Bookmarks -> Show Bookmarks
Navigate To Bookmarks (Another Way)
On the right side you will see a black horizontal line marker for the bookmark you can click on that to jump to the bookmark
Upvotes: 5
Reputation: 945
Using Go to next bookmark
for the projects with lots of bookmarks maybe not useful so much.
My suggestion is using Shift+F11 to see the full list of bookmarks in summery and go directly to the one you need.
Also in addition to F11, using Ctrl+F11 can be a good choice to set a Mnemonic single address code for each bookmark and find them directly with Ctrl + NUMBER
.
In mac systems, these 3 keys replace with F3 - Alt+F3 - Cmd+F3
Upvotes: 28
Reputation: 31
You can add two new buttons on toolbar that are previous and next bookmark actions in this way: perform click with rigth mouse button on toolbar and select "customize menus and toolbars". Select "main toolbar" and click on an position that you want to add new buttons. Click on "Add After" button and select command "next and previous bookmark" from navigate menu. Enjoy.
Upvotes: 3
Reputation: 1484
There is no default shortcut to go to next bookmark. Though you can set one in Preferences.
To do that go to Preferences > Keymap then under Main menu > Navigate > Bookmarks you can set the desired keyboard shortcut for various action. (You can also search for bookmark
keyword in the search bar of Preferences Window to navigate directly.)
Hope this helps!
Upvotes: 44