In this article
CDL Editor panel has a context menu that offers various commands like formatting, searching, cutting, copying, peeking, and migrating named symbols.
The CDL Editor panel provides various commands that can be accessed through the context menu by right-clicking anywhere inside the panel. These commands are as follows:
The CDL editor context menu
Go to definition [Ctrl+F12] - Takes you to the place in the code where the definition of a referenced item is located.
Peek definition [Alt+F12] - Allows you to see the definition without jumping to that place in the code.
Peek references [Shift+F12] - Shows you how many times a change has been referenced, useful for understanding its impact.
Change all occurrences [Ctrl+F2] - Finds and changes all occurrences of a given text in the code.
Format document [Shift+Alt+F] - Re-formats the code with proper indentation to make it more readable.
Cut - Cuts the selected code from the editor.
Copy - Copies the selected code to the clipboard for pasting into another location in the editor.
CDL documentation - Displays the context help text.
Fix missing required entity IDs - Corrects missing or non-unique entity IDs, which are required for the system to have a unique reference for each entity in the CDL.
Migrate quoted names... - Migrates "older format" names using quote symbols to the newer # symbol.
Upgrade to CDL v2.1 - Upgrades your report/dashboard to the latest version of the CDL.
Command Palette [F1] - Gives an overview of all operations in the editor, along with keyboard shortcuts.
Command Palette in Studio
The command palette is a complete list of all the commands you can use in Studio, along with the keyboard shortcuts for the commands where shortcuts are available.
The command palette
To open the Command palette:
Either right-click in the CDL Editor panel to open the Context menu, then select Command palette from the menu.
or
While your mouse cursor is in the CDL Editor panel, press the F1 key on your keyboard.
To use a command from the Command palette:
Select an area of code or place the mouse cursor as appropriate in the CDL Editor.
Open the Command palette.
Scroll to the command you wish to use, and click on it to select it.