Write and run
Write and run AL in Code Studio
Write AL in Code Studio with IntelliSense and live diagnostics, run it at once in the current company, then save it, load samples or use the AL Console.
updated: applies-to: 1.0.0.0
Code Studio is a code editor for AL that runs your code immediately in the current company.
Open it
Choose the Code Studio tile, New Program in the role center, or Open in Code Studio on a program. The title shows the environment nickname, so you always know where the code runs.
Write
- Syntax highlighting, IntelliSense for tables, fields and methods, and live diagnostics as you type.
- Check lists every problem.
- Format (Shift+Alt+F) tidies the layout.
Run
Choose Run (F5, F9 or Ctrl+R). Messages and output appear in the console, with the time the run took and its audit entry number. The Problems, Changes, Tables and Debug tabs sit next to the console.
Save and load
- Save (Ctrl+S) stores the program with a new version, and Save As makes a copy.
- Load opens a saved program or one of the ten samples, from Hello World to Update Prices From Sheet.
Excel and batches
- Excel opens the program's sheet. Programs read and write its cells with exget and exset, and you download it as an Excel file.
- Batch opens Batch Processing with this program as the library for the new value expression. It needs Bitta Object Runner.
AL Console
AL Console (Preview) in the Code menu runs one AL statement or expression at a time and shows the result at once. An administrator turns it on in Preview Features, and its tile appears only while it is on.
What's next
Simulate and debug before you change data.