Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>AL Variable QuickfixNew to Visual Studio Code? Get it now.
AL Variable Quickfix

AL Variable Quickfix

Himanshu Sharma

|
2,280 installs
| (0) | Free
Check and update the AL variables as per the coding guidelines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AL Variable Quickfix

License: MIT Typescript: 100% Share the feedback

VS Code extension for variable quickfix in AL.

Demo

Variable name update
Demo

Features

  • Removed unused global/local variables.
  • Rearrange the global/local variables as per the recommended datatype sequence in AL.
  • Add suffix in local/global variables and update references at all respective places.
  • Add prefix in temporary variables and update references at all respective places.
  • Update keywords casing in all files.
  • Ignore prefix while renaming variable.
  • Update selected lines.
  • Clean up preprocessor symbols.

Extension Settings

This extension contributes the following settings:

  • al.quickFix.globalvariablesuffix: set to G
  • al.quickFix.localvariablesuffix: set to L
  • al.quickFix.tempvariableprefix: set to Temp
  • al.quickFix.updatelabelandtextconstsuffix: Check or Uncheck
  • al.quickFix.updatevariablename: Check or Uncheck
  • al.quickFix.ignorevariableprefix: Array of String

Working with Markdown

Note: Here are some useful editor keyboard shortcuts:

  • Remove unused variables, Sort variables and add Suffix in variables (Shift+CMD+Q on macOS or Ctrl+Shift+Q on Windows and Linux)
  • Sort local/global variables (Shift+CMD+V on macOS or Ctrl+Shift+V on Windows and Linux)
  • Only remove unused variables (Shift+CMD+T on macOS or Ctrl+Shift+T on Windows and Linux)
  • Add suffix in variables (Shift+CMD+A on macOS or Ctrl+Shift+A on Windows and Linux)
  • Update variables (CMD+I on macOS or Alt+I on Windows and Linux)
  • Update selected lines (Shift+CMD+J on macOS or Shift+CMD+J on Windows and Linux)
  • Clean up preprocessor symbols in workspace

For more information

  • [Create issues at Git] (https://github.com/himanshu2599/AL-Quickfix-/issues)

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft