Opening a VJET editor

In this section, you will learn how to open an editor for VJET files and also learn something about the basic VJET editor features.

  1. Expand the VJETProject and select the file Test.js. You can open Test.js in the VJET editor by double clicking on it.

    In general you can open a VJET editor for VJET files, types, methods and fields by simply double clicking on them.

    For example, to open the editor directly on the method setOpen defined in Test.js, expand the file in the Script Explorer and double click on the method.

  2. Notice the syntax highlighting. Different kinds of elements in the VJET source are rendered in unique colors.

    Examples of VJET source elements that are rendered differently are:

    The picture below shows an example:

    Syntax highlighting

    If you want to change the color, you can go to Opens the Syntax Coloring preference page VJET > Editor > Syntax Coloring preference page.

  3. Look at the Outline view. It displays an outline of the VJET file including the package declaration, fields, types and methods. The Outline view uses icons to annotate VJET elements. For example, icon(S) indicates a VJET element is static, icon(C) indicates a VJET element is a constructor. Different icons show you whether a method overrides a method from a base class (overridden) or when it implements a method from an interface (implements).

    Outline view

  4. Toggle the Hide Fields, Hide Static Members, and Hide Non-Public Members buttons in the Outline view toolbar to filter the view's display. Before going to the next step make sure that the Hide Non-Public Members and Hide Static Fields and Methods buttons are not pressed.

    Outline view tool bar

  5. In the Outline view, select different elements and note that they are again 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 the VJET editor that indicates the range of the selected element.

    Range indicator

Related reference