LoginSignup
3
3

More than 5 years have passed since last update.

SublimeText3でRailsコーディングする時に、gemの中までコードジャンプする簡単な方法

Posted at

ひとことで言うと

gemをvenderの中にインストールする

手順

アプリケーション直下に「.bundle/config」ファイルを作成する

BUNDLE_PATH: vendor/bundle
BUNDLE_DISABLE_SHARED_GEMS: '1'

この設定でbundle installすると、app/vender/bundle/以下にgemファイルがinstallされる。

これでSublimeTextのGotoDefinitionで普通に潜ることが出来る。

キーバインドの変更

デフォルトのキーバインドはやりにくいという場合は、以下の様な設定をkeymapに追加する。

  // 定義元へ
  { "keys": ["ctrl+["], "command": "goto_definition" },
  // 遷移元へ
  { "keys": ["ctrl+]"], "command": "jump_back" }
3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3