Assuming you've installed Mavensmate already. This package includes a bunch of handy apex snippets for development on Salesforce platform.
If you are using Will Bond's excellent Sublime Package Control, you can easily install Apex Snippets via the Package Control: Install Package
menu item. The Apex Snippets
package is listed in the packages list.
Alternatively, if you are a git user, you can install the package and keep up to date by cloning the repo directly into your Packages
directory in the Sublime Text application settings area.
You can locate your Sublime Text Packages
directory by using the menu item Preferences -> Browse Packages...
.
While inside the Packages
directory, clone this repository using the command below:
git clone https://github.com/dirajkumar/sublime-apex-snippets.git "Apex Snippets"
- Download the files using the GitHub .zip download option
- Unzip the files and rename the folder to
Apex Snippets
- Find your
Packages
directory using the menu itemPreferences -> Browse Packages...
- Copy the folder into your Sublime Text
Packages
directory