Visual Studio Code is a lightweight and powerful code editor that supports Windows, OS X and Linux. It has built-in support for JavaScript, TypeScript and Node.js, and has a rich plug-in ecosystem. You can install plug-ins to support other languages such as C, C#, Python, and PHP.
Visual Studio Code method to configure the php development environment:
Preparation work:
1. Download Visual Studio Code;
2. Download xampp, because the package saves trouble and is very convenient for personal use;
3. Download xdebug, remember to match the php version, otherwise it will be invalid.
Configuration steps:
1. Install php related plug-ins in Visual Studio Code
2. Configure the php path in the preferences
3. Place the Xdebug dll in the php related directory
4. Add the following code to the php.ini file
5. Set breakpoint debugging in vscode. Note: You must open a folder to successfully set breakpoint debugging. A single file is invalid
Recommended tutorial:vscode tutorial
The above is the detailed content of Can vscode write php?. For more information, please follow other related articles on the PHP Chinese website!