If you want it for all files, go to Preferences -> Settings - Default/User
. But as several comments below indicate, Syntax Specific settings can limit it to just the languages you choose.
To limit this configuration to Ruby files, first open up a Ruby file in the editor, and then go to Preferences -> Settings - Syntax Specific
. This should open a settings window named Ruby.sublime-settings
Save these settings:
{
"tab_size": 2,
"translate_tabs_to_spaces": true,
"detect_indentation": false
}
Repeat for any other syntax types by opening a file of that type and going back to the preferences to open the correct preferences file for that syntax.
I have edited this to include the "detect_indentation" line per the requests in comments; I previously used the Default/User to set my tab size, and have not needed the tab detection, but whether that is due to the global config or due to the fact that I have rarely opened files with tabs, I do not know.
Restarting should not be necessary, although in some instances it can be.
You have to add a folder to the Sublime Text window in order to navigate via the sidebar. Go to File -> Open Folder...
and select the highest directory you want to be able to navigate.
Also, 'View -> Sidebar -> Show Sidebar' if it still doesn't show. In the new version, there is only an 'open' menu and no separate option for opening a folder.
Best Answer
I'm not really sure this question is approprate here, but you can add a new "Build System" under
Tools -> Build System -> New Build System...
As with all configuration in Sublime Text its just JSON, so it should be pretty straight forward. The main thing you are going to want to configure is the
"cmd"
key/val. Here is the build config for launching chrome on my mac.Save that as
Chrome.sublime-build
, relaunch Sublime Text and you should see a newChrome
option in the build list. Select it, and then you should be able to launch Chrome with Cmd+B on a Mac (or whatever hotkey you have configured for build, maybe its F7 or Ctrl+B on a Windows machine)At least this should give you a push in the right direction.
Edit:
Another thing I end up doing a lot in Sublime Text 2 is if you right click inside a document, one of the items in the context menu is
Copy File Path
, which puts the current file's full path into the clipboard for easy pasting into whatever browser you want.Sublime Text 3 (linux example) "shell_cmd": "google-chrome '$file'"