Skip to content

TomasVotruba/PhpStorm-LiveTemplates

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 

Repository files navigation

My Handy PhpStorm Live Templates

Constructor Live Template

Install

  1. Go to PhpStorm Preferences | Tools | Settings Repository

  2. Add Read-only Source https://github.com/TomasVotruba/PhpStorm-LiveTemplates

  3. Restart PhpStorm and profit!

What is in this package?

st

declare(strict_types=1);

ctor

public function __construct($END$)
{
}

pub

public function $NAME$($ARGS$)
{
    $END$
}

pri

private function $NAME$($ARGS$)
{
    $END$
}

vs

/**
 * @var string
 */

va

/**
 * @var string[]
 */

vi

/**
 * @var int
 */

ra

/**
 * @return string[]
 */