Optimize your VS Code for fast AL development.

11-11-2024

VS Code is built to handle smaller dependent projects instead of a large project, however if you see the base application is not split yet into components that allow managing the code in smaller projects. I recommend the following settings to increase the performance.

 

Open settings.json file in the project or from global settings.

  • To turn off code analysis completely - "al.enableCodeAnalysis": false
  • To turn off running code analysis in the background - "al.backgroundCodeAnalysis": false
  • To turn off AL Code Actions - "al.enableCodeActions": false
  • To allow the compiler to reuse the existing background compilation - "al.incrementalBuild": true
  • To turn off code lens - "editor.codeLens": false
  • To turn off formatting when saving a file - "[al]": { "editor.formatOnSave": false }

 

In addition to the above settings, you can consider excluding the source folder of VS Code and the Microsoft.Dynamics.Nav.EditorServices.Host.exe from Windows Defender analysis.