Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/pauloamgomes/sublime3-drupal
Sublime3 configurations for drupal development
https://github.com/pauloamgomes/sublime3-drupal
Last synced: about 2 months ago
JSON representation
Sublime3 configurations for drupal development
- Host: GitHub
- URL: https://github.com/pauloamgomes/sublime3-drupal
- Owner: pauloamgomes
- Created: 2015-05-13T10:13:36.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-05-13T21:28:51.000Z (over 9 years ago)
- Last Synced: 2023-03-01T21:11:14.993Z (almost 2 years ago)
- Language: JavaScript
- Size: 145 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# sublime3-drupal
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
- Install PHP Code Sniffer
pear install PHP_CodeSniffer
- Download coder module from https://www.drupal.org/project/coder - 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)
- 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,
- 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