Skip to content

Latest commit

 

History

History
64 lines (42 loc) · 1.94 KB

3_sublime_text.md

File metadata and controls

64 lines (42 loc) · 1.94 KB

Install Sublime Text

Now it's time to install Sublime Text, a sophisticated text editor for code, markup, and prose.

To get started, download Sublime Text 3 and drag the app icon into your /Applications folder.

TIP: Remember to eject the disk image after installing the app.

Once installed, use Spotlight to launch Sublime Text 3.

Next, navigate to the Sublime Text 3 > Preferences > Settings - User menu item.

Ensure the file contains the following preferences.

{
  "font_size": 18.0,
  "ensure_newline_at_eof_on_save": true,
  "rulers": [80],
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_trailing_white_space_on_save": true,
  "save_on_focus_lost": true
}

WARNING: Punctuation errors with either curly-brackets, double-quotes, colons, square-brackets, or commas will be highlighted in red. If one of these symbols is missing, Sublime Text will highlight the next closest symbol. Analyze the above example preferences carefully. 👀

Remember to save the file and you'll see something like this.

When you're done, close the file.

subl

You'll find it insanely useful to open files and directories into Sublime Text from the Terminal.

In the event that you are using Sublime Text 2 rather than Sublime Text 3, you will run a different command. Use the one of the two commands below.

To get started, run the following command:

SUBLIME TEXT 2 users run this:

ln -s /Applications/Sublime\ Text\ 2.app/Contents/SharedSupport/bin/sublime /usr/bin/subl

OR

SUBLIME TEXT 3 users run this:

ln -s /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl /usr/bin/subl

To verify Sublime Text is wired up correctly, run the following command.

subl

If the program Sublime Text opens, you're good to go.