AX 2012AX 2009

Code Understanding

Enhanced Syntax Highlighting

AxAssist extends the default colour scheme in Microsoft Dynamics AX 2012 with highlighting for types, unused variables, macros, keywords, user defined keywords and so on. For example, the Syntax Highlighting feature allows you to easily distinguish between Table types and Class types in X++ code.

Virtually all colours, in the Dynamics AX 2012 X++ Editor, can be adjusted to your liking. Please note that in some cases you need to reopen Microsoft Dynamics AX Editor (e.g. open another class method) to see the changes (see Customize colour schema for more details).
Example of a dark theme in Microsoft Dynamics AX 2012:


Custom Syntax Highlighting

The Syntax Highlighting feature can be extended with custom predefined colours. For example, you can choose to highlight a particular word (a custom method perhaps) or symbol anywhere in the X++ code.

Below is an example of custom colours applied to info, warning and error methods:

Extending Microsoft Dynamics AX 2012 R2 R3 standard colours - info method Extending Microsoft Dynamics AX 2012 R2 R3 standard colours - warning method Extending Microsoft Dynamics AX 2012 R2 R3 standard colours - error method

Quick Info

The Quick Info option displays key information for any identifier, type, method, enum or macro in your code.

Enum value Quick Info:

Microsoft Dynamics AX 2012 R2 R3 enum tip label

Macros value Quick Info:

Microsoft Dynamics AX 2012 R2 R3 macros tip label

Macros value Quick Info:

Microsoft Dynamics AX 2012 R2 R3 aot macros tip label

Please note that AxAssist also supports the F12 command to go to the macro definition.

Quick Info - method:


Highlight matching words

AxAssist can highlight matching words anywhere in the X++ code or comments. The highlight colour can be adjusted in Settings->Colours->Highlight matching words.


Highlight selected code

AxAssist can highlight the selected part of a word anywhere in the X++ code:


Highlight Matching Delimiters

AxAssist can highlight matching brackets in the X++ code:

Highlight Matching brackets or parentheses in Microsoft Dynamics AX 2012

Highlight Current Line

You can opt to highlight the line where the caret currently resides.

You can configure the colour of the highlighted line in the colours tab of AxAssist Settings’ form. See Configuration for more details.


Custom comments

AxAssist provides some extra types of comments. These comments are highlighted with different colours:

  • Important comments - comments starting with //!
  • Question comments - comments starting with //?
  • Finished comments - comments starting with //x
Custom comments in Microsoft Dynamics AX 2012

Methods highlight

Methods, which have modifications in the current layer, are highlighted in bold in the Microsoft Dynamics AX Editor:

Highlight method in Microsoft Dynamics AX 2012
Real Time Analytics