Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>PHP Snippets from PHPStormNew to Visual Studio Code? Get it now.

PHP Snippets from PHPStorm

Phiter Fernandes

|
110,072 installs
| (4) | Free
Snippet pack from PHPStorm's Live templates
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

PHPStorm PHP Live Templates for VSCode

This extension aims to provide the PHP Live Templates that come by default in new PHPStorm installations for Visual Studio Code.

Usage

Type part of a snippet, press Enter (or Tab if you have editor.tabCompletion set to true) and the template will be placed right there for you.

Snippets

Snippet Purpose
eco echo statement.
fore foreach(iterable_expr as $value) {...}
forek foreach(iterable_expr as $key => $value) {...}
inc include statement
inco include_once statement
prif private function
prisf private static function
prof protected function
prosf protected static function
pubf public function
pubsf public static function
rqr require statement
rqro require_once statement
thr throw new (by default, an \Exception)

Happy coding!

License

MIT License

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft