Setup an awesome Salesforce developer environment with Sublime Text 3
- Dec
- 01
- Posted by Lin
- Posted in Other, Salesforce

Why Sublime Text 3 ?
I’ve been working with Force.com for about 2 years, and always using Eclipse+Force.com IDE(See here, Eclipse Force.com IDE Installation)as my development environment. I don’t think it is really difficult to use, but it could be more friendly. For example:1. It doesn’t support APEX and VF assist
※Seriously?! This looks like using Emeditor to write Perl code, if without assist.
2. Heavy
※Eclipse crashes occasionally, once you try to reopen it, you have to take the risk that the source code on Force.com may be overwrited with local.
3. Need a nice dark theme
Recently,I’ve tried Sublime Text 3 and deeply moved by it’s light, so lightly!
The installation package only has 10MB, and the Eclipse has about 400MB, then you can know how slick it can be in seconds.
In this post, I want to share you that how to setup an awesome Force.com development environment with Sublime Text 3.
Let’s get started.
1. Install Sublime Text 3
Download Sublime Text 3 and install itSublime Text 3 supports Windows,MacOSX and Linux,I will explain it with MacOSX in this post.
※Google Chrome will be needed if you are using Windows OS.

2. Install Package Control
Package Control is the Sublime Text package manager,it is the simplest method of package management.1. Open Package Control installation page,copy the content in red frame.

2. Open Sublime Text Console


3. Install MavensMate
Now we have Package Control to install packages so easily.1. Open Package Control: Preferences > Package Control,input “install”, then select “Package Control: Install Package” menu.br />

2. Input “MavensMate“,click the menu to install.

It will output “Package MavensMate successfully installed” in console after package has been installed.
1. Set Workspace
Open MavensMate > Settings > User
Case of one workspace: Case of multiple workspaces: Slash has to be(”\”→”\\”) in window, Like:
2. Install MavensMate API (mm)

2. Install MavensMate-Desktop
Install MavensMate-Desktop from https://github.com/joeferraro/MavensMate-Desktop/releases and run it.
4. Install other useful packages
Intall those packages like [3.]・ Visualforce
Visualforce bundle for Sublime Text 2/3
・ jQuery
Sublime Text package bundle for jQuery・ CSS Snipet
CSS support for Sublime Text 3・ Salesforce Reference
Quick access to Salesforce Documentation from Sublime Text.Preferences > Package Control > Salesforce Reference・DocBlockr
Simplifies writing DocBlock comments in Javascript, PHP, CoffeeScript, Actionscript, C & C++.5. Eclipse Shortcuts
Jump by ctrl+click
Create “Default (OSX).sublime-mousemap” file in “Default (OSX).sublime-keymap” ‘s parent folder with the following contents. ※This only works on Windows OS. 🙁※Reference:here and here
Find in files
Open Preferences > KeyBindings-User and copy the following contents.Delete Line
※Need to change “super” to “ctrl” in Windows OS.6. New Force.com Project
1. Open MavensMate > Project > New Project,input “Project Name”,”Salesforce.com Username”,”Salesforce.com Password”(with password+SecurityToken if have Security Token).

2.Click Project Metadata to select Project Metadata

3.Click Create Project.

4. That is all! Looks great!

— Updated at 2016/06/16
Have an error like “Require TLS 1.1 for HTTPS connections” with MavensMate v6.0? You can fix it by following this post 《To Fix Error “Require TLS 1.1 for HTTPS connections” of MavensMate v6.0》 !
Enjoy it!
Recent Posts
- Salesforce DevTools Release Notes (version 3.10.0) – mass edit custom fields on lightning
- Salesforce DevTools Release Notes (version 3.9.0) – Object Fields, SOQL Query Editor
- Salesforce DevTools Release Notes (version 3.8.0)
- Salesforce DevTools JUST HIT 10,000 USERS! THANK YOU!
- Using Promise for Apex Server-Side request in Lightning Component
Top Posts
- Salesforce DevTools – Powerful Salesforce developer tools, loved by over 50K developers - 226.3K views
- Date format and DateTime format - 209.6K views
- Salesforce Mass Editor (Chrome Extension) – Mass create, mass update, mass clone, mass delete on any list view. Support for both Classic and Lightning! - 160.9K views
- Writing a Schedulable Batch Apex in Salesforce - 124.5K views
- Setup an awesome Salesforce developer environment with Sublime Text 3 - 123K views
Categories
- APEX
- Apps
- Custom Label
- Custom Metadata
- Custom Setting
- Design & UI
- Event
- Heroku
- iOS & Object-c
- Lightnint Component
- Linux & Mac OS
- Metadata API
- Node.js
- Open Source
- Other
- PHP Framework
- Release Notes
- REST API
- Salesforce
- Salesforce DevTools
- Salesforce DX
- SOQL
- Tooling API
- Unit Tests
- Validation Rule
- Visualforce
- WordPress
You must be logged in to post a comment.