Home » Support » Index of All Documentation » Wing IDE Reference Manual » Source Code Editor »

4.7. User-defined Bookmarks

Wing IDE Professional and higher support named user-defined bookmarks that can be set and accessed from the Source menu and the key bindings shown there. Defined marks are listed in the Bookmarks tool. Bookmark names are global to the project and refer to a particular position within a selected file:

  • For Python files, bookmarks are defined relative to the enclosing scope (method, class, or function), so edits before the line where the bookmark is located will usually not cause the bookmark's relative position in source code to be changed. Only edits between the anchoring scope, such as start of method, and the bookmarked line will cause a bookmark's position to slip. Wing currently does not try to track bookmarks when this is the case, but they can easily be redefined if exact location is important.
  • For all other types of files, bookmarks are defined simply by file name and line number. If the file is edited, the bookmark's position may appear to slip.

When navigating to a bookmark from the Source menu or key binding, Wing will present a dialog or entry area at bottom of the screen (depending on editor personality) into which the bookmark name can be typed. A list of possible completions will be displayed. Pressing tab will select the currently highlighted completion.

A list of defined bookmarks is available in the Bookmarks tool, which is available from the Tools menu. Right click on an entry for a context menu of operations for the selected bookmark or bookmarks. Multi-selection is possible by holding down the shift and/or control keys. Double clicking or middle mouse clicking will navigate to the selected bookmark.

When the Bookmarks tool has focus, keyboard navigation is possible with the arrow keys and by typing letters to move quickly to a particular bookmark. Enter can then be pressed to navigate to the selected bookmark.

In VI mode, the standard m and \` plus key bindings are supported, in addition to the operations in the Source menu, which allow for the definition of bookmarks with names longer than one character.

Emacs, Brief, and other key bindings also support bookmarks. However, bookmark functionality for VI, Emacs, and Brief key bindings is omitted in Wing IDE Personal.

« 4.6. Source AssistantTable of Contents4.8. Templating (Code Snippets) »