Sublime3 configurations for drupal development
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


Sublime3 configurations (user settings) and recommended addons for drupal development.

Main advantages of using sublime for Drupal:

  • Simplicity of usage
  • Fast and light
  • Supports multiple platforms (Mac, Linux, Windows)
  • Plugin mechanism
  • Great user adoption

How to apply the settings

Goto to Preferences > Settings - user and replace contents from Preferences.sublime-settings

Package Manager

Package Manager provides a mechanism for installing and managing sublime packages (addons) from the sublime package repository.

Use installation steps provided on Package Control installation page

Drupal packages

Other recommended packages

SublimeLinter and Code Sniffer

Install PHP_Codesniffer and drupalcs

  1. Install PHP Code Sniffer
    pear install PHP_CodeSniffer
  2. Download coder module from - use 8.x branch since 7.x seems broken (8.x branch can be also used for validating D7 code) and copy or link the coder/coder_sniffer/Drupal folder to to your PHP CodeSniffer Standards folder (e.g. /usr/share/php/PHP/CodeSniffer/Standards)
  3. Configure sublimelinter prefs by updating Preferences/Package Settings/Sublime Linter/Settings - User
        "paths": {"linux": ["/usr/bin/php"]},
        "syntax_map": {"php": "php"},
        "sublimelinter_popup_errors_on_save": true,
        "sublimelinter_fill_outlines": true,
        "sublimelinter_gutter_marks": true,
  4. Create a new Build System in Tools/Build System/New Build System... with the following code:
        "cmd": ["phpcs", "--report=emacs", "--standard=Drupal","--extensions=php,module,inc,install,test,profile,theme", "$file"],
        "file_regex": "^(.*):(.*):(.*):(.*)$"
    and save the file on your User Package folder with the name Drupal.sublime-build