ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl
コンソールを開く
ctrl + shift + @
下記を入力→実行→再起動
import urllib2,os; pf='Package Control.sublime-package';ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
⌘ + Shift + pでコマンドパレットを開いてinstallと入力してPackage Control起動
検索してエンターでインストール
html5の補完
構文チェッカー
CSSの補完
SublimeText2からGitが使える
Unit, RSpec, Cucumberを実行
文末のスペース表示、削除
保存時に行末スペースを削除する
"trim_trailing_white_space_on_save": true
Railsのナビゲーション
キーバインド
{ "keys": [" ", "m"], "command": "list_rails_models", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "c"], "command": "list_rails_controllers", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "v"], "command": "list_rails_views", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "h"], "command": "list_rails_helpers", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "x"], "command": "list_rails_fixtures", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "t"], "command": "list_rails_tests", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "i"], "command": "list_rails_javascripts", "context": [{"key": "setting.command_mode"}] },
{ "keys": [" ", "y"], "command": "list_rails_stylesheets", "context": [{"key": "setting.command_mode"}] }
テーマ
サイドバーのメニューを拡張
カーソルをブロックで表示する
タグの何か
メニューからSublimeText2, Preferences, Settings - Userを選択
もしくは⌘,
"font_face": "Ricty"
"translate_tabs_to_spaces": true
"ignored_packages": []