CrossStudio has a built-in editor that allows you to edit text, but some
features make it particularly well suited to editing code.
You can open multiple code editors to browse or edit project source
code, and you can copy and paste among them. The Windows menu
contains a list of all open code editors.
The code editor supports the language of the source file it is editing,
showing code with syntax highlighting and offering smart indenting.
You can open a code editor in several ways, some of which are:
- By double-clicking a file in the Project Explorer or
by right-clicking a file and selecting Open from the
- Using the File > New File or File > Open commands.
Elements of the code editor
The code editor is composed of several elements, which are described here.
Code pane: The area where you edit code. You can set options that affect
the code pane's text indents, tabs, drag-and-drop behavior,
and so forth.
Margin gutter: A gray area on the left side of the code editor where margin
indicators such as breakpoints, bookmarks, and shortcuts are
displayed. Clicking this area sets a breakpoint on the
corresponding line of code.
Horizontal and vertical scroll bars: You can scroll the code pane horizontally and vertically
to view code that extends beyond the edges of the pane.