Bookmarks in Eclipse, set and go using hotkeys, do they exist?

后端 未结 7 1064
谎友^
谎友^ 2021-02-02 05:53

Bookmarks in Eclipse, set and go using hotkeys, do they exist?

Say, Ctrl+Shift+1 = Set 1 bookmark

Ctrl+1 =

7条回答
  •  死守一世寂寞
    2021-02-02 06:35

    I personally like these settings:

    1. Go to Window > Preferences > General > Keys
    2. Type "bookmark" as the filter and select "Add Bookmark"
    3. Click in the box related to binding at the bottom.
    4. Erase previously assigned hotkeys with delete or backspace Then hit Ctrl + Shift + A
    5. Similarly select "Go to next bookmark" and assign Ctrl + B to it.
    6. Finally, select "Toggle Bookmark" at the bottom, and assign Ctrl + Shift + B to it.

    This way you can:

    • hit Ctrl + Shift + A to add a bookmark with name (which is shown if you open the Bookmarks view with the name you entered and you can double click on it to go to that line).
    • hit Ctrl + Shift + B to add a bookmark without name (which is also shown in the Bookmarks view but named as "Quick bookmark").
    • hit Ctrl + B to switch between bookmarks and is very handy if you have a few number of bookmarks.

提交回复
热议问题