PhpStorm templates

PhpStorm templates

Posted by Sweetchuck on August 14, 2012 at 7:21am

THIS IS NOT A MODULE, but Drupal-specific “Live Templates” and “File Templates” for PhpStorm.

UPDATE

Manager script has been moved into another repository.
https://github.com/Sweetchuck/WebIdeConfigManager

Steps to start using it the first time:

  1. Exit from PhpStorm
  2. $ cd ~/where/you/want/to/store/the/config/files
  3. $ git clone https://github.com/Sweetchuck/WebIdeConfigManager.git
  4. $ cd WebIdeConfigManager/ConfigHome
  5. $ git clone --recursive --branch 7.x-1.x http://git.drupal.org/project/phpstorm-templates.git drupal
  6. $ cd ..
  7. $ ./WebIdeConfigManager.php push
  8. Start PhpStorm
  9. type “hook_mail” or whatever hook and press Tab for template.

To update:

  1. Exit from PhpStorm
  2. $ cd /PathTo/WebIdeConfigManager/ConfigHome/drupal
  3. $ git pull
  4. $ cd ../..
  5. One of:
    • $ ./WebIdeConfigManager.php push
    • OR
    • $ ./WebIdeConfigManager.php push -h drupal
  6. Start PhpStorm
  7. Enjoy.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s