Configuring AIMMS IDE
The AIMMS IDE Editor offers options for displaying line numbers and customizing syntax highlighting, which can enhance code readability and ease of navigation. This article explains how to enable line numbers, customize display options, and manage syntax colors to suit your preferences.
Displaying Line Numbers
By default, line numbers are hidden in the AIMMS Editor, but you can enable them for easier reference and debugging. This feature is helpful when discussing specific parts of your model with others, as it allows you to point directly to line numbers within procedures or definitions.
To enable line numbers in the Editor:
Go to
.In the dialog that appears, select the
tab.Set the
option to .
With this setting enabled, line numbers appear next to all attributes that span multiple lines, as shown below:
Jump to Specific Line Number
You can quickly navigate to a particular line number using the keyboard shortcut Ctrl + G
or by selecting in the menu. This will open a dialog where you can specify the line number to jump to.
Note
The
function is available even when line numbers are hidden.Customizing Syntax Highlighting
AIMMS Optimization Tooling applies a default syntax highlighting theme to help you quickly interpret various elements in the Editor. However, you can modify the colors for different identifier types, such as variables or keywords, to suit your preferences.
For instance, in the following image, the variable Assignments
is highlighted in green:
To customize syntax highlighting:
Go to
. A settings dialog will appear.In the
section on the left, select the identifier type you want to modify.Adjust the display settings on the right to change the color, style (e.g., bold, italic, underline), or other attributes.
In addition to identifiers, you can customize the styling for comments, keywords, and other elements by selecting
in the section.Importing and Exporting Style Settings
You can save your style settings as an .xml
file, which allows you to share custom configurations with others in your organization. Use the and buttons in the dialog to manage these files.
Below, you can download the Editor Settings used throughout How-To articles and E-Learning courses: