Skip to content

Instantly share code, notes, and snippets.

@btopro
Last active April 6, 2018 19:36
Show Gist options
  • Save btopro/739d7d0d745f41597174 to your computer and use it in GitHub Desktop.
Save btopro/739d7d0d745f41597174 to your computer and use it in GitHub Desktop.
Sublime2 tuning and some best practices for setup

http://www.sublimetext.com/

Goal 1: get package manager installed

Installing package manager: https://sublime.wbond.net/installation#st2 Follow the instructions on that page, then to use package manager:

hold command + shift + p then type pi which is short for package installer You should see a list of packages you could install!

Goal 2: Install some packages

My recommended list: https://gist.github.com/btopro/7152f2f17be3d2c038e8

alternative list (Michael Potter): https://gist.github.com/heyMP/f2e7827e6e3c9afb5c7b

preference file: Me https://gist.github.com/btopro/caa88cfafc300d6e5370 Potter https://gist.github.com/heyMP/f5c1230dc7e37225a578

Goal 3: some other efficiencies

has drupal coding standards in place (at least for formatting) so will highlight whitespace as "wrong"

provides feedback on CSS prior to saving if properties may have known broswer issues / conflict with each other (em based class w/ px based definitions in it for example)

hold shift and click multiple lines; multi-line editing is then enabled

command + shift + p then start to type the name of a drupal hook (like hook_menu) and hit enter

select a bunch of lines, then do command + shift + l this will allow you to overwrite the selected things at the same time.

Additional links: A great walkthrough on how to configure sublime2: http://www.amazeelabs.com/en/blog/sublime-text-drupal-installation-and-configuration Another great list of plugins for sublime2: http://www.phase2technology.com/blog/sublime-text-2-for-drupal-development/

SFTP plugin -- http://wbond.net/sublime_packages/sftp

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment