The following is a list of recommended official and contributed extensions that will allow you to configure Visual Studio Code for Drupal PHP and JavaScript development.
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.