{"title":"Optimize Visual Studio Code for AL development","url":"https://jonas-paprotka.de/docs/dev-itpro/developer/devenv-optimize-visual-studio-code/","by":"JOP-AL","license":"Copyright (c) Microsoft Corporation. CC BY 4.0, https://creativecommons.org/licenses/by/4.0/; code samples MIT. From https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-optimize-visual-studio-code, MicrosoftDocs/dynamics365smb-devitpro-pb at 828b6ee (2026-11-19). Changed: includes filled in, links to this site, and for agents shortened without dropping a fact.","credit":"Microsoft Corporation, CC BY 4.0","origin":"https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-optimize-visual-studio-code","source":{"name":"Business Central developer and IT pro docs","repo":"https://github.com/MicrosoftDocs/dynamics365smb-devitpro-pb","commit":"828b6ee72fcd75755627cd6011f3d20899217ab2","date":"2026-11-19"},"checked":"2026-11-19","description":"Explains how you configure Visual Studio Code to get better performance when editing and building AL projects.","date":"2022-06-22","meta":{"topic":"article"},"outline":[{"level":1,"title":"Optimize Visual Studio Code for AL development","slug":"optimize-visual-studio-code-for-al-development","at":0,"chars":1770},{"level":2,"title":"Related information","slug":"related-information","at":1641,"chars":129}],"text":"# Optimize Visual Studio Code for AL development\nVisual Studio Code is built to handle many smaller dependent projects instead of one large project. However, as the base application isn't yet split into modules or components that allow managing the code in smaller projects, we recommend the following performance optimizations.\nOpen your settings.json file in the project (or global settings if you prefer that) selecting Ctrl+Shift+P. Set:\n `\"al.enableCodeAnalysis\": false` to turn off code analysis completely, read more here devenv-using-code-analysis-tool.\n `\"al.backgroundCodeAnalysis\": false` to turn off running code analysis in the background, but code analysis will be enabled when building with Ctrl+Shift+B. This is an alternative if analyzers are required with `\"al.enableCodeAnalysis\": true`.\n `\"al.enableCodeActions\": false` to turn off AL Code Actions, read more here AL Code Actions<devenv-code-actions>.\n `\"al.incrementalBuild\": true` to allow the compiler to reuse the existing background compilation for creating the package.\n `\"editor.codeLens\": false` to turn off code lens in Visual Studio Code, see Code Navigation<https://code.visualstudio.com/Docs/editor/editingevolved#_reference-information>.\n `\"[al]\": {​​​​​​​​​​\"editor.formatOnSave\": false }​​​​​​​​` to turn off formatting when saving a file for AL. If you still want formatting, then you can adjust what to run formatting on, and you can choose modifications by using the Format On Save Mode option.\n Add the build folder to the exclusion list for Windows Defender<https://support.microsoft.com/help/4028485/windows-10-add-an-exclusion-to-windows-security>.\n## Related information\nDevelopment in AL<devenv-dev-overview>\nBest Practices for AL<../compliance/apptest-bestpracticesforalcode>"}