10.02.2013 Views

SlickEdit User Guide

SlickEdit User Guide

SlickEdit User Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

BOOKMARKS<br />

that are not in the current workspace. To enable workspace bookmarks, set the Use workspace<br />

bookmarks option to True (Tools > Options > Editing > Search).<br />

Pushed Bookmarks<br />

Pushed bookmarks are used to set temporary “breadcrumbs” as you move throughout your code. For<br />

example, you may have multiple spots in your code that you want to examine. You can push a bookmark<br />

(drop a breadcrumb) at each location, one right after the other. When you’re done examining the code and<br />

pushing bookmarks, you can backtrack to where you first started by popping the bookmarks (picking up<br />

the breadcrumbs).<br />

Pushed bookmarks are stored on the bookmark stack, which is simply an internal list of pushed<br />

bookmarks. When you push a bookmark, the current line is placed on top of the bookmark stack. Popping<br />

a bookmark removes the top bookmark from the stack, and navigates the cursor to the location of the<br />

previous bookmark.<br />

Pushed bookmarks are deleted when you close <strong>SlickEdit</strong>®.<br />

See the following sections for more information:<br />

• Pushing and Popping Bookmarks<br />

• Viewing Pushed Bookmarks<br />

• Pushed Bookmark Options<br />

Pushing and Popping Bookmarks<br />

To push a bookmark for the current line, placing it on top of the bookmark stack, use one of the following<br />

methods:<br />

• From the main menu, click Search > Push Bookmark (or use the push_bookmark command).<br />

• Use the Go to Definition or Go to Reference feature: Press Ctrl+Dot (bound to the push_tag<br />

command) to move the cursor from a symbol to its definition, or Ctrl+/ (bound to the push_ref<br />

command) to navigate from a symbol to its reference, pushing a bookmark in the process. See<br />

Symbol Navigation for more information.<br />

To pop a bookmark, from the main menu, click Search > Pop Bookmark, press Ctrl+Comma, or use the<br />

pop_bookmark command. The top bookmark on the stack is removed and the cursor jumps to the<br />

location of the previous bookmark.<br />

To pop all pushed bookmarks at once, use the pop_all_bookmarks command.<br />

TIP When you use the Go to Bookmark dialog to jump to a named bookmark (see Navigating Named<br />

Bookmarks), <strong>SlickEdit</strong> pushes a bookmark in the process. This way you can quickly go back to your<br />

previous location.<br />

Viewing Pushed Bookmarks<br />

In most use cases, you will never need to see pushed bookmark locations or a list of pushed bookmarks,<br />

because they are intended to act as temporary “breadcrumbs” as you explore your way through code.<br />

However, there are two ways to see visual representations of pushed bookmarks:<br />

• Enable the visual indicator - <strong>SlickEdit</strong>® can display a blue bitmap in the left margin of editor<br />

windows at the location of each pushed bookmark. To enable display of the indicator, set the<br />

Show pushed bookmarks option to True (Tools > Options > Editing > Search).<br />

298 <strong>SlickEdit</strong>® <strong>User</strong> <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!