Is there a shortcut to insert a php tag in Visual Studio Code?

Asked 2 years ago, Updated 2 years ago, 92 views

I'm studying PHP from scratch and my text editor uses Visual Studio Code.
I have manually entered <?php>/?php> many times, but I wonder if there are any convenient shortcuts.
The development environment is XAMPP and does not specifically use the PHP framework.
The operating system of the PC is Windows 10.

php vscode

2022-09-30 17:14

1 Answers

Commonly described fragments of code, such as PHP tag and function or class declaration, are called snippets and include the ability to insert snippets on many IDEs, including Visual Studio Code.

Why don't you use the following article to create a PHP tag snippet?
Creating your own snippets in Visual Studio Code

Define your own snippet in Visual Studio Code|DevelopersIO


2022-09-30 17:14

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.