Giter Site home page Giter Site logo

phpstorm-laravel-live-templates's Introduction

Laravel Live Templates for PhpStorm

How to:

  1. Download and copy the xml file(s) to your templates folder:
  • Windows: <your home directory>\.<product name><version number>\config\templates
  • Linux: ~\.<product name><version number>\config\templates
  • OS X: ~/Library/Preferences/<product name><version number>/templates

e.g. ~/Library/Preferences/WebIde70/templates on OS X for PhpStorm 7

  1. Restart PhpStorm.

  2. To see all templates, go to Preferences->Live Templates and expand the Template Group.

Laravel_Blade.xml

Laravel Blade Screenshot

Laravel_Schema.xml

It's hard to remember shortcuts when there are a large number of options. A more efficient way is to take advantage of PhpStorm's Insert Live Template shortcut. Type as few or as many letters as you want and press Cmd + J.

Type Sc or Sch or Schema and press Cmd + J

Laravel Schema Screenshot

Type $ta or $tab or $table and press Cmd + J. As you continue typing, the options get filtered.

Laravel Tables Screenshot

Laravel_Routes.xml

Laravel Tables Screenshot

All Route verbs are labelled get by default, but you can change it easily once the shortcut is expanded:

Laravel Tables Screenshot

Laravel_Cache.xml

Laravel Tables Screenshot

==========

Other goodies

Take your PhpStorm productivity to the next level with these keyboard shortcuts.

phpstorm-laravel-live-templates's People

Contributors

koomai avatar

Stargazers

Carlos Florêncio avatar

Watchers

James Cloos avatar Carlos Florêncio avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.