以下の内容はhttps://tbpgr.hatenablog.com/entry/2015/12/02/001202より取得しました。


Sublime Text2のreplace_allボタンにショートカットキーを割り当てる

f:id:tbpg:20151202000930j:plain

Sublime Text2のreplace_allボタンにショートカットキーを割り当てます。

目的

  • キーボードだけでファイル内の文字列置換を完結させたい

設定

  • Key Bindings - User に下記設定を追加
  { "keys": ["control+shift+enter"], "command": "replace_all", "args": {"close_panel": true},
     "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
  }

control+shift+enter の部分は好きなキーバインドに変更してください

サンプル

対象ファイル

サンプル1
サンプル2
サンプル3
  • ⌘+⌥+fで置換ウインドウを開く
  • Find What に \d を入力
  • Replace With に Crystal を入力
  • control+shift+enterを押下

デモ

f:id:tbpg:20151202000943g:plain

置換後のファイル

サンプルCrystal
サンプルCrystal
サンプルCrystal



以上の内容はhttps://tbpgr.hatenablog.com/entry/2015/12/02/001202より取得しました。
このページはhttp://font.textar.tv/のウェブフォントを使用してます

不具合報告/要望等はこちらへお願いします。
モバイルやる夫Viewer Ver0.14