Sublime Text 2 Setup in Linux

For this purpose, there is a link sublime text 2 setup but you may find problem in its “Copy auxiliary files” section.

For “Copy auxiliary files” run these commands:

    i) cd /tmp
   ii) git clone
  iii) cp -r rails_tutorial_sublime_text/*  ~/.config/sublime-text-2/Packages/User/

Here is one more link:

Tests inside Sublime Text

Go to your Sublime Text 2 Packages directory:

  OS X: ~/Library/Application\ Support/Sublime\ Text\ 2/Packages
  Windows: %APPDATA%/Sublime Text 2/Packages/
  Linux: ~/.config/sublime-text-2/Packages/

and clone the repository using the command below:

  git clone RubyTest


After restarting Sublime Text, the RubyTest package supplies the following commands:

Command-Shift-R: run a single test (if run on an it block) or group of tests (if run on a describe block)
Command-Shift-E: run the last test(s)
Command-Shift-T: run all the tests in current file
Command-Shift-X: Show test panel (when test panel visible hit esc to hide it)
Alt-Shift-V: Check RB, ERB file syntax

Switching between code and test (create a file if not found):
Command-. : Single View
Command-Ctrl-. : Split View

Sublime text2 tab indentation setting

goto preferences -> Setting-user

It will open a file named as “Preferences.sublime-settings”.

Add these following lines in this file’s curly braces({}). Change the tab_size value of following lines according to your requirement.

“auto_indent”: true,
“detect_indentation”: false,
“tab_size”: 4,
“translate_tabs_to_spaces”: false