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.

CODE ANNOTATIONS<br />

Workspace and Project annotations are very similar. If you don’t create too many annotations, you could<br />

save all of your annotations as Workspace annotations. However, if you have projects that are shared<br />

between workspaces, you should use Project annotations so that the information is available regardless of<br />

which workspace you are using. If you create a lot of annotations, you may wish to use Project instead of<br />

Workspace so that you can view the list of annotations for a single project, providing a way to view a more<br />

manageable subset of annotations.<br />

See Managing Annotation Files for more information.<br />

Private and Shared Annotations<br />

Code annotations can be private or shared. Annotations are shared by sharing the annotation file with<br />

other users. Like source files, annotation files are most easily shared using a version control system.<br />

Only Workspace and Project annotations can be shared effectively. Because they refer to files in the<br />

workspace or project, the path to those files is stored relative to the workspace or project. Even if users<br />

have the same workspace in different directories, <strong>SlickEdit</strong>® will be able to locate the source files<br />

referenced by annotations. Personal annotations and <strong>User</strong>-Defined annotations are not sharable. They<br />

store a fully qualified path to the referenced file. Unless two people have the same directory hierarchy on<br />

their machines, <strong>SlickEdit</strong> will not be able to located the referenced source files.<br />

Relocatable Code Marker<br />

Code Annotations use a relocatable code marker to store the location within the source code. This allows<br />

<strong>SlickEdit</strong>® to find the new location if someone makes edits to the file externally, like editing the file with a<br />

different editor. The next time you open the file, <strong>SlickEdit</strong> checks the location of each code marker and<br />

verifies that it is still correct. If necessary, <strong>SlickEdit</strong> uses stored information to locate the correct line of<br />

code for this annotation. If the code has changed too much, <strong>SlickEdit</strong> may not be able to find the new<br />

location, and you will be prompted to find the new location yourself. This will only happen when the code<br />

near the code marker has been heavily edited.<br />

Annotations Tool Window and File Manager<br />

<strong>SlickEdit</strong>® provides a Code Annotations tool window that lists all of the currently visible annotations. This<br />

tool window allows you to filter the set of visible annotations. The primary filter is by type. If annotations of<br />

more than one type are displayed, only the default fields common to all annotations are displayed in the<br />

annotation list. You can use the tool window to create, edit, and delete code annotations as well. See<br />

Managing Annotations for more information.<br />

Code Annotations are stored in files, and they become visible when the annotation file is opened. <strong>SlickEdit</strong><br />

automatically opens the annotations from your personal annotations file along with those from the<br />

workspace and project annotation files. You can use the Annotation File Manager to open any other<br />

annotation files you like. See Managing Annotation Files for more information.<br />

Managing Annotations<br />

The Code Annotations tool window provides a detailed view of annotations that you have created as well<br />

as operations for adding, modifying, copying, moving, and removing annotations. From this window, you<br />

can also manage annotation files and create your own annotation types.<br />

To display the tool window, from the main menu click View > Toolbars > Code Annotations, or use the<br />

annotations_browser command on the <strong>SlickEdit</strong>® command line.<br />

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