Giter Club home page Giter Club logo

sublime-drupal's Introduction

sublime-drupal

Script to setup a Sublime Text 2 editor for Drupal development (Mac & Linux)

The installer include plugins and settings to configure the environment in order to speed up the Drupal Development process.

Plugins Included

* = Only available for MacOSX

Installer requirements

After save a JS file a validation is executed using JSLint, JSLint needs Node.JS/ installed on your system.

How to install

How to update

If you already have this script installed you just need run the following command to get the latest version.

  • git pull origin master

After complete this command you just need re-execute the script with the following command.

  • ./SublimeDrupal.sh

The command above will include new plugins and update your current plugins, if you have custom settings the script always create backups and you can use to restore your custom settings.

Installation Notes

Drupal Coding Standard

To use the Drupal Coding Standard plugin you have to install before PHP Code Sniffer , you check the installation process at http://drupal.org/node/1419988

Drupal Auto Compelte

To use the Drupal Auto Complete, you need to create a SublimeProject and save the project definition at the drupal document root where index.php is located

Highlighter

Automatic highlight of any "non-ASCII (code point > 128) characters"

Key Binding

  • CTRL + Shift + t: Delete the trailing spaces
  • CTRL + Shift + f: Reindent selected code
  • Super + Shift + a: Go to Drupal Api definition of selected function
  • Super + Shift + h: Go to documentation of selected function for languages PHP/JS and others
  • Super + b: Validate Drupal Code Standard in current file
  • Super + Shift + e: Execute verification of errors
  • Super + Shift + Option + k: Jump to previous Git modification
  • Super + Shift + Option + j: Jump to next Git modification
  • Super + Shift + 1: Reveal file in SideBar
  • * CTRL + Command + t: Open a Termimal or iTerm2
  • CTRL + Shift + y | Super + CTRL + y: Prettify YAML

* = Only available for MacOSX

Super Key stands for Command in Mac, Windows Key in Windows and CTRL in Linux

Orginally forked from https://github.com/phase2/sublime-drupal/

sublime-drupal's People

Contributors

enzolutions avatar mike-potter avatar timasplin avatar

Watchers

 avatar  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.