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.

NAVIGATION<br />

Navigating Between Multiple Instances<br />

If more than one instance of the definition or reference is found, the Select Symbol Dialog is displayed,<br />

from which you can select the instance to navigate to. To go to the next occurrence, press Ctrl+G (Search<br />

> Next Occurrence or find_next command). To go to the previous occurrence, press Ctrl+Shift+G<br />

(Search > Previous Occurrence or find_prev command).<br />

Alternatively, press Ctrl+Down (next_tag command) or Ctrl+Up (prev_tag command) to place the cursor<br />

on the next or previous symbol definition.<br />

Using the Find Symbol Tool Window<br />

The Find Symbol Tool Window (Search > Find Symbol or gui_push_tag command) is used to locate<br />

symbols (tags) which are declared or defined in your code. It allows you to search for symbols by name<br />

using either a regular expression, substring, or fast prefix match. See Find Symbol Tool Window for<br />

descriptions of the options that are available.<br />

More Symbol Navigation Methods<br />

There are several other methods for navigating to symbols:<br />

• The Symbols Tool Window shows the symbols for all tag files. Right-click in the tool window and<br />

select Find Tag to search for a specific symbol. You can also use the cb_find command to find the<br />

symbol under the cursor and display it in the Symbols tool window.<br />

• At the <strong>SlickEdit</strong>® command line, use the f command and completion keys (Space and ?) to enter<br />

a tag name. For example, if tagging the C run-time library, type f str? on the command line for a<br />

list of tag names starting with “str” (such as strcpy, strcmp, etc.).<br />

• To navigate to a Slick-C® symbol, you can use the fp command (a shortcut for find_proc). If<br />

editing a Slick-C macro, then enter the push_tag command (Ctrl+Dot) to find the symbol at the<br />

cursor. The push_tag command actually calls the find_proc command with the symbol name at<br />

the cursor to perform the task.<br />

Begin/End Structure Matching<br />

Begin/End Structure Matching moves the cursor from the beginning of a code structure to the end, or vice<br />

versa. This works for languages using curly braces “{ }”, “begin” and “end”, or any other defined begin/end<br />

pairs.<br />

To place the cursor on the opposite end of the structure when the cursor is on a begin or end keyword pair,<br />

press Ctrl+] (find_matching_paren command or from the menu click Search > Go to Matching<br />

Parenthesis). The find_matching_paren command supports matching parenthesis pairs { },[ ] and ( ).<br />

TIP For Python, <strong>SlickEdit</strong>® supports the matching of the colon (:) token and the end of context. See<br />

Begin/End Structure Matching for Python for more information.<br />

Viewing and Defining Begin/End Pairs<br />

Use the language-specific General options screen to view or define the begin/end pairs for any language.<br />

To access this dialog, from the main menu, click Tools > Options > Languages, expand your language<br />

category and language, then select General.<br />

In the Begin/end pairs text field, specify the pairs in a format similar to a regular expression.<br />

NOTE This text box is unavailable (dimmed) for languages that have special begin/end matching<br />

built-in.<br />

194 <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!