Skip to content

Instantly share code, notes, and snippets.

@STAR-ZERO
Created November 23, 2012 07:46
Show Gist options
  • Select an option

  • Save STAR-ZERO/4134412 to your computer and use it in GitHub Desktop.

Select an option

Save STAR-ZERO/4134412 to your computer and use it in GitHub Desktop.
Sublime Text 2 の設定

Sublime Text 2 の設定

ターミナルから起動できるように

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Package Controlインストール

コンソールを開く

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'

Packageインストール

⌘ + Shift + pでコマンドパレットを開いてinstallと入力してPackage Control起動

検索してエンターでインストール

HTML5

html5の補完

SublimeLinter

構文チェッカー

CSS Snippets

CSSの補完

Git

SublimeText2からGitが使える

RubyTest

Unit, RSpec, Cucumberを実行

TrailingSpaces

文末のスペース表示、削除

保存時に行末スペースを削除する

"trim_trailing_white_space_on_save": true

Simple Rails Navigator

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"}] }

Theme - Soda

テーマ

SideBarEnhancements

サイドバーのメニューを拡張

SublimeBlockCursor

カーソルをブロックで表示する

Tag

タグの何か

設定

設定画面を開く

メニューからSublimeText2, Preferences, Settings - Userを選択

もしくは⌘,

フォント設定

"font_face": "Ricty"

タブをスペースに

"translate_tabs_to_spaces": true

Vimモード

"ignored_packages": []
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment