The Editor Perspective
Purpose
-
Syntax highlighting
-
IntelliPrompt features
-
Code snippets
-
And much more
For more information, see The Code Editor.
-
Multi-document management
-
Script compilation
-
Layout personalization
-
Breakpoints, watches, locals, call stack management
-
Step-by-step execution
-
Instant code execution
-
And much more
The Editor Perspective Panel
When you select the Editor tab, the Editor Perspective panel is displayed:
This panel consists of:
-
The document editor (1). The following document editors are currently implemented:
-
The code editor
-
The inline help viewer,
-
-
The document selector (3),
-
Various tool windows (4,5,6,7) that can be docked around it
The script tree (2) tool window displays all of the script files included in the current project. You can use it to open scripts for editing.
The Document Selector
Background
Any number of scripts can be open simultaneously. Each script is loaded into its own, independent document editor.
The document selector helps you to manage open documents.
It consists of:
-
Document tabs (1), (2), (3), and so on – one per open document. The document that is currently being edited is highlighted (4)
-
A selector menu (5)
Document Tab
The document tabs let you:
-
Change the document currently being edited by clicking its tab
-
Close the document currently being edited by clicking the cross on the right of the tab
-
Change the tab order by dragging one tab and dropping it at a new location in the selector
-
Split the perspective panel to display two (or more) documents at the same time (see Docking Management).
The Selector Menu
The selector menu is useful when you have opened more documents than the number of tabs that the selector can display.
It lets you view all of the open documents and select one of them for editing.
The Code Editor
Background
The code editor is used to edit script files and XML blocks.
The code editor panel consists of:
-
An indicator margin (1)
-
A line number margin (2)
-
A selection margin (2)
-
An outlining margin (2)
-
The editor itself (3)
The Editor
The editor is a powerful text editing control that is packed with features for efficient code editing, including syntax highlighting, code outlining, block selection, IntelliPrompt, split views, zooming, and more.
Here is a detailed list of the editor’s features:
Editing Features
-
Unlimited undo/redo with support for batch-replace operations
-
Block indent/outdent
-
Automated line modification tracking
-
Block (rectangular) selection and ability to prevent certain selection methods (select with the Alt key pressed)
-
Edit multiple lines at the same time via block selection
-
Line selection in the selection margin
-
Clipboard operations and drag/drop natively supported (cut, copy, paste), with support for any data object
-
Over 100 edit actions, including everything provided by Visual Studio, such as caret movement, selection, indenting, tabification, transposition, and more
-
Block, none, and customizable smart auto-indent modes when pressing Enter
-
Current line and delimiter (bracket) highlighting
-
Delimiter (bracket) auto-completion
-
Auto-case correct
-
Code block selection (expansion/contraction)
-
Scrolling accelerates the longer scrollbar buttons are depressed
Appearance Features
-
Syntax highlighting
-
Word wrap
-
Whitespace display
-
Optional line number, selection, outlining, ruler, and word wrap glyph margins
-
Indicators (bookmarks, breakpoints, current statement, etc.)
-
Four-way or two-way split views
-
Animated zoom in and out, with mouse wheel support
-
Squiggle lines for marking errors and spelling mistakes
-
Complete support for both automatic and manual code outlining (folding), with customizable outlining node options
-
Collapse (hide) regions of text independently of the outlining feature
-
Indentation guides
IntelliPrompt Features
-
Completion lists that improve editing productivity and support complete word functionality
-
Completion lists support filters (tabs/buttons), multiple matching algorithm options, ability to create custom matching algorithms, matched text highlights, description tips, and much more
-
Quick info tips that can show detailed information about what is under the mouse, with automated mouse hover tracking
-
Parameter info tips that can show multiple signature overloads and track the current parameter
-
Code snippets that allow predefined text fragments to be inserted into the editor, and declared fields edited
See also Code Editor Help Features and Code Editor Commands.
Code Editor Margins
Indicator Margin
The indicator margin displays various indicators:
-
: bookmark indicators
-
: breakpoint indicators
-
: todo indicators
-
: running line indicator
You can change the margin visibility with the Is Indicator Margin Visible setting in the editor perspective settings.
Line Number Margin
The line number margin displays the code line numbers.
You can change the margin visibility with the Is Line Number Margin Visible setting in the editor perspective settings.
Selection Margin
The selection margin displays colored bars where code has been modified:
-
Yellow bar: indicates modified code that has not yet been saved
-
Green bar: indicates modified code that has been saved.
You can change the margin visibility with the Is Selection Margin Visible setting in the editor perspective settings.
Outlining Margin
The outlining margin displays the code outlining (folding) node tree. It lets you expand and collapse nodes:
-
‘+’ expands the node
-
‘-’ collapses the node
You can change the margin visibility with the Is Outlining Margin Visible setting in the editor perspective settings.
The Scripts Tree
The scripts tree contains all the script files included in the current project. It contains the following node types:
|
|
Folder Node |
|---|---|
|
|
Framework or library script |
|
|
Project script |
Each (SDK or project) script node contains subnodes displaying a first-level code map (see Navigation Using Code Map).
Each tree node has a shortcut menu providing the main associated functions (see Commands Reference).
It lets you:
-
Add new scripts
-
Edit scripts
-
Organize scripts in folders
-
Rename scripts (with F2)
-
Delete scripts
The Project Tree
The project tree contains all of the processes, applications, pages, and items declared in the current project.
In projects, it lets you:
-
Add resources
-
Select the application/page/item displayed in the page viewer
-
Drag&drop application/page/item names in the current code editor (see Code Editor Help Features)
-
Insert a snippet in the current code editor (see Code Editor Help Features)
The Editor Perspective Tool Windows
The editor perspective contains the following tool windows:
Navigation
-
Page viewer (see Code Editor Help Features)
-
Bookmarks (see Navigation Features)
-
Todo list (see Navigation Features)
-
Code map (see Navigation Features)
-
Code tree (see Navigation Features)
Find/Replace
Find Results (see Search Features).
Compilation
Output and Error List (see Compiling a Project)
Debugging
-
Breakpoints (see Debugging Your Code with Script Debugger)
-
Locals (see Debugging Your Code with Script Debugger)
-
Call stack (see Debugging Your Code with Script Debugger)
-
Watches (see Debugging Your Code with Script Debugger)
Docking Management
Background
The editor perspective layout is a docksite that consists of:
-
Four tool window zones on the left, top, right and bottom sides.
-
One document zone in the center. This document zone can be split into several document zones.
You can change the layout of the editor perspective by:
-
Docking document editor instances in split document zones
-
Docking tool windows in the various tool window zones, or in the split document zones
You can also open a linked docksite (by clicking in the Main Window menu bar). This a second docksite where you can dock document editor instances and tool windows.
To do this:
-
Drag the code editor tab or the tool window tab. The docking guide is displayed automatically.
-
Drop the dragged tab onto the desired section of the docking guide.
Dock Document Editor Instances
To dock a document editor instance, drag the document Editor tab over a document zone.
The docking guide is displayed and consists of the following targets:
-
One central guide (1)
-
Four splitting guides: (2), (3), (4), (5)
If you drop a tab:
-
Onto one of the splitting guides, this action splits the document zone and moves the dragged document editor instance to the newly created document zone
-
Onto the central guide, this action moves the dragged document editor instance to the corresponding document zone
-
Outside the docking guide, this action makes the dragged document editor instance a floating instance.
Docking Tool Windows
To dock a tool window, drag the tool window tab or title bar over a document zone.
It consists of the following targets:
-
One document guide (1)
-
Four tool window zones guides: (2), (3), (4), (5)
-
Four splitting guides: (6), (7), (8), (9)
If you drop a tool window:
-
Onto the document guide, this action moves the dragged tool window as a document to the corresponding document zone
-
Onto one of the tool window zones guides, this action moves the dragged tool window to the corresponding tool window zone
-
Onto one of the splitting guides, this action splits the tool window zone and moves the dragged tool window to the newly created tool window zone
-
Outside the docking guide, this action makes the dragged tool window a floating window
Until the new layout has been saved, you can restore the previously saved layout.
Layout Management
You can save your layout by clicking from the main menu. This layout will be restored the next time you launch Desktop Studio.
To restore this layout without restarting Desktop Studio, click .




