Home > Development Tools > VSCode > How to compile php with vscode?

How to compile php with vscode?

青灯夜游
Release: 2019-12-23 16:57:07
Original
10124 people have browsed it

How to compile php with vscode?

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.

vscode editor supports writing in multiple languages ​​and file formats. As of September 2019, it has supported the following 37 languages ​​or files: F#, HandleBars, Markdown, Python, Jade, PHP, Haxe, Ruby, Sass, Rust, PowerShell, Groovy, R, Makefile, HTML, JSON, TypeScript, Batch, Visual Basic, Swift, Less, SQL, XML, Lua, Go, C, Ini, Razor, Clojure, C#, Objective -C, CSS, JavaScript, Perl, Coffee Script, Java, Dockerfile.

How to compile php with vscode?

vscode can support the PHP language by installing plug-ins, and then configure the PHP running environment.

VScode configures the PHP running environment

Preparation work:

1. Visual Studio Code;

2. xampp

3. Xdebug

Configuration steps:

1. Install php related plug-ins in Visual Studio Code

How to compile php with vscode?

2. Configure the php path in the preferences

How to compile php with vscode?

3. Place the Xdebug dll in the php related directory Next

How to compile php with vscode?

4. Add the following code to the php.ini file

How to compile php with vscode?

5. Set breakpoints in vscode debug. Note: You must open a folder to successfully set breakpoint debugging. A single file is invalid

How to compile php with vscode?

Related recommendations:vscode introductory tutorial

The above is the detailed content of How to compile php with vscode?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template