Setup an awesome Salesforce developer environment with Sublime Text 3
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.
※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 3Download Sublime Text 3 and install it
Sublime 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 ControlPackage 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. Ctrl-V Paste to Console,then Enter to run.
3. Install MavensMateNow we have Package Control to install packages so easily.
1. Open 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 WorkspaceOpen
Case of one workspace： Case of multiple workspaces： Slash has to be（”\”→”\\”） in window, Like:
※If you’re using MavensMate v7, then you don’t need installing MavensMate API (mm) anymore, take a look at here: 《To Fix Error “Require TLS 1.1 for HTTPS connections” of MavensMate v6.0》
2. Install MavensMate API (mm)
2. Install MavensMate-DesktopInstall MavensMate-Desktop from https://github.com/joeferraro/MavensMate-Desktop/releases and run it.
4. Install other useful packagesIntall those packages like [3.]
・ VisualforceVisualforce bundle for Sublime Text 2/3
・ jQuerySublime Text package bundle for jQuery
・ CSS SnipetCSS support for Sublime Text 3
・ Salesforce ReferenceQuick access to Salesforce Documentation from Sublime Text.
5. Eclipse Shortcuts
Jump by ctrl+clickCreate “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 filesOpen and copy the following contents.
Delete Line※Need to change “super” to “ctrl” in Windows OS.
6. New Force.com Project1. Open ,
input “Project Name”,”Salesforce.com Username”,”Salesforce.com Password”(with password+SecurityToken if have Security Token).
2.Click to select Project Metadata
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》 !