

Once installation is complete, Intelephense’s official documentation recommends that you disable the built-in PHP Language Features extension that comes with VS Code. Click on the Install button to install and enable the extension. Type “php” or “intelephense” to locate the PHP Intelephense extension. This will bring up a sidebar menu with a search box and a list of popular or recommended extensions. Open the extensions tab by clicking on the last icon on the left menu bar, or by pressing CTRL + SHIFT + X. In this guide, we’ll install and set up PHP Intelephense, a popular PHP extension for VS Code that provides several advanced features such as improved code completion, better navigation between components, rich information tooltips on mouse hover, code auto formatting, and real time error reporting based on static code analysis. There are a number of VS Code extensions that can help speed up your productivity when working on PHP projects. Working in larger projects, though, can become difficult without more context around the code and how each file interacts and integrates within the larger project. These features are suitable for quick edits or when working with individual PHP scripts. Right after installation, VS Code already recognizes PHP code and helps with syntax highlighting, basic debugging, and code indentation. Step 1 - Installing VS Code PHP Extensions for Extra Support Please note, though, that keyboard shortcut keys may need to be slightly modified for compatibility with MacOS systems. The instructions in this guide were validated on an Ubuntu 20.04 desktop computer, but they should work seamlessly in all operating systems that are supported by VS Code. To follow this guide, you’ll need to download and install the appropriate version of Visual Studio Code for your operating system. In this guide, you’ll learn how to set up Visual Studio Code for working on PHP projects.

With a large collection of extensions for many programming languages, VS Code can be customized to serve a wide variety of development needs. Visual Studio Code, also known as VS Code, is a free source code editor - or integrated development environment (IDE) - available for all major operating systems.
