- 2 minutes to read
Markers are navigation waypoints that remember important locations you'll need to move to in the future. Markers can be of the following types:
Soft Marker - is dropped automatically by Code Providers. For instance, if you use the Declare Field With Initializer code provider, a marker will be dropped onto the method parameter for which the field was generated.
Hard Marker - is dropped manually onto the current cursor position.
Selection Marker - is dropped manually onto the current selection.
- Invisible Marker - is dropped onto the current reference when you tab to the next reference or use Quick Navigation. This marker is not displayed in the code editor.
Markers provide the following features:
|Collect Marker||ESC||Moves the caret to the topmost marker within the stack, and removes this marker.|
|Drop Marker||ALT+HOME||Drops a marker at the current cursor position.|
|Swap Marker||SHIFT+ALT+HOME||Moves the topmost marker within the stack to the current cursor position, and moves the cursor to the previous position of the marker.|
|Collect Marker and Paste||SHIFT+ESC||Moves the caret to the topmost marker within the stack, removes this marker and pastes the contents of the clipboard to the new caret position.|
|Select Marker||SHIFT+ALT+PAGE UP||Selects the code section from the current cursor position to the topmost marker within the stack.|