• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP block shortcut in Visual Studio Code

phpvisual-studio-codeshortcut


PHP Snippet 1:

"php": {
    "prefix": "php",
    "body": [ "<?php $1 ?>" ],
    "description": "php tag"
}

PHP Snippet 2:

 "php": {
     "prefix": ["<?", "<? ", "php"],
     "body": [ "<?php $1 ?>" ],
     "description": "php tag"
 }

PHP Snippet 3:

    "php": {
    "prefix": ["<?", "php"],
    "body": [
        "<?php",
        "",
        "$0",
        "",
        "?>"
    ],
    "description": "php tag"
}

PHP Snippet 4:

        <?php
        
        (code here)
        
        ?>

Related Snippets

Adding hreflang tags automatically in WordPress subdirectory multisite

Backend cannot be reached after Typo3 login screen

How to unlink image from folder?

How to redirect to another page and call a Function there on Angular ng-click

"Unable to load dynamic library 'pdo_sqlsrv.so' "Cenos7 PHP7.2.10

PHPMyAdmin not working as intended at remote server. Error 500, $respond not found

How to make dot match newline characters using regular expressions

Getting values for an enum?

Class AppHttpControllersUserController Does Not Exist

How Can I Do LIMIT 1, 2 In WP_Query

Woocommerce Checkout - Add conditional field required if one field is filled

Create tags in laravel post publishing

Script @php artisan package:discover handling the post-autoload-dump event returned with error code 255

Two buttons one form

Adding custom body class to the custom archive pages

About Contact Privacy policy Terms and conditions