Opening Magik editor

In this section, you will learn how to open an editor for Magik files. You will also learn about some basic Magik editor features.

  1. Expand as_environment_manager source folder and select the file as_environment_manager.magik. You can open as_environment_manager.magik in Magik editor by double clicking on it. Usually you can open Magik editor for Magik files, types, methods and fields by simply double clicking on them. For example, to open the editor directly on the method new() defined in as_environment_manager.magik, expand the file in the Product Explorer and double click on the method.
  2. Notice the syntax highlighting. Different kinds of elements in the Magik source are rendered in unique colors. Examples of Magik source elements that are rendered differently are:

    Syntax highlighting

  3. Look at the Outline view. It displays an outline of the Magik file including the package declaration, fields, types and methods. The Outline view uses icons to annotate Magik elements.

    Outline view

  4. In the Outline view, select different elements and note that they are displayed in a whole file view in the editor. The Outline view selection now contains a range indicator on the vertical ruler on the left border of Magik editor that indicates the range of the selected element.

    Range indicator

Related concepts

Magik views
Magik editor

Related reference

Magik Outline View
Magik Editor Preferences