The following settings are related to basic formatting for PHP, CSS, JavaScript or HTML files. The following breaks down and explains settings related by category or extension.
By default, VS Code defaults are fine for Drupal, just a few tweaks are required. Each configuration file is formatted as a JSON object (See documentation: User and Workspace Settings and file Locations).ĭefault configurations can be overridden by accessing Preferences -> User Settings. Visual Studio Code displays its configuration on a per-project (Workspace) and global (User) level.
The intellisense extension you may want to use may vary based on your license requirements and Drupal web site.
This article explains how to configure Microsoft Visual Studio Code to work with your local installation of Drupal and debug using XDebug. It can be installed on many platforms using common package managers. Note that an alternate build of VS Code exists, called VSCodium. VS Code is available for Mac, Linux and Windows. Visual Studio Code (VS Code) is a free tool for editing and debugging Web apps based on the Visual Studio Code - Open Source code base.