Using the Bookmark Stack
Go Up to How To Edit Code in the Code Editor
The bookmark stack is a method of navigating through your source code, moving in a pre-defined path.
- Note: This documentation is for the stack bookmarks, for the toggle bookmarks, see Using Bookmarks.
The bookmark stack is a keyboard-only feature that allows you to add stack bookmarks to your code in a pile order, you can then navigate back through your bookmarks moving always to the last bookmark of the pile, therefore to the last bookmark that was placed.
The functionalities of the bookmark stack are:
Description | Shortcut | Notes |
---|---|---|
Drop a stack bookmark | CTRL+K & CTRL+G
|
Sets a stack bookmark in the current cursor location. |
Pick up a stack bookmark | CTRL+Q & CTRL+G
|
Moves the cursor to the last stack bookmark and removes the bookmark. |
Swap a stack bookmark | CTRL+ALT+Q & CTRL+ALT+G
|
Swaps the last bookmark placed and the cursor location. |
Dropping Bookmarks
- Place the cursor in the position where you want to drop a bookmark.
- Press the
CTRL+K & CTRL+G
keyboard shortcut.
Picking up Bookmarks
- Place the cursor anywhere in the Code Editor.
- Press the
CTRL+Q & CTRL+G
keyboard shortcut.- The Code Editor moves the cursor to the location of the most recent bookmark dropped, and removes such bookmark.
Swapping Bookmarks
- Place the cursor anywhere in the Code Editor.
- Press the
CTRL+ALT+Q & CTRL+ALT+G
keyboard shortcut.- The Code Editor swaps the current cursor location with the most recent bookmark:
- A bookmark is dropped at the current cursor location.
- The Code Editor moves the cursor to the location of the most recent bookmark that was dropped, and removes such bookmark.
- The Code Editor swaps the current cursor location with the most recent bookmark: