Keyboard shortcuts for AL in Visual Studio Code

This article lists commonly used Visual Studio Code keyboard shortcuts for AL development—covering navigation, editing, building, publishing, debugging, and profiling. For the full, platform‑wide set of bindings, go to Key bindings for Visual Studio Code.

General in Visual Studio Code

Keyboard ShortcutAction
Ctrl+Shift+PShow all commands
Alt+F6Download source code.
Alt+A+LAL Go! Generates a HelloWorld project.
Ctrl+Shift+BCompile and package.
F5Compile, Package, and Publish (with debugging).
Ctrl+F5Build and publish without debugging. Note: The keyboard shortcut has a different meaning when debugging.
F6Publish and open Designer.
Ctrl+F2Update the compiler used by the service tier(s).

Note

With runtime 16, you can cancel an in‑progress publish. Hit the Cancel button in the dialog in the lower right corner. The operation stops packaging/upload steps as soon as possible; partial artifacts aren’t applied to the server.

Editing in Visual Studio Code

Keyboard ShortcutAction
Ctrl+SpaceLook up suggestions for the current object.
Ctrl+XCut.
Ctrl+CCopy.
Ctrl+VPaste.
Ctrl+F2Select all occurrences.
F12Go to definition
Alt+F12Peek definition.
Shift+F12Show references.
Ctrl+Shift+SpaceLook up parameter hints.
Ctrl+K Ctrl+CAdd line comment.
Ctrl+K Ctrl+URemove line comment.
Ctrl+Shift+PShow all commands.
F2Rename (use Enter to rename, use Shift+Enter to preview).
Shift+Alt+ELook up events and insert event subscriber in code for a selected event.

Errors in Visual Studio Code

Keyboard ShortcutAction
F8Move to the next error or warning.
Shift+F8Move to the previous error or warning.

Compile and publish in Visual Studio Code

Keyboard ShortcutAction
Ctrl+Shift+BCompile and build the solution.
Ctrl+F5Build and deploy.
Shift+Alt+WPublish full dependency tree for the active project.

Debugging in Visual Studio Code

For articles on debugging in AL, see Debugging and Snapshot Debugging.

Keyboard ShortcutAction
F5Start debugging session
Ctrl+F5Publish without building. Note: The keyboard shortcut has a different meaning when not debugging.
Ctrl+Alt+F5Start RAD publishing without debugging.
Alt+F5Start RAD with debugging.
F7Start a snapshot debugging session.
Shift+F7List all available snapshots.
Alt+F7Finish a snapshot debugging session.

Profiling in Visual Studio Code

For more information about profiling, see AL Profiler Overview.

Keyboard ShortcutAction
EnterExpand and collapse a node.
Left arrowCollapse a node.
Right arrowExpand a node.
- (minus)Collapse all nodes.
* (star)Expand one level for all nodes. Consecutive keystrokes expand to the next level.

Developing extensions
Get started with AL
AL development environment