Tabキーで括弧の外へ移動する機能、Eclipseではよく使っていた。
でもSublimeTextにはその機能がなく、困っていた。
そしたらその動作を実現する設定を載せてるサイトがあった。
や〜ありがたい。
ずっと探してたんだよなぁこれ。
でも、自分的には足りない部分もあったので改良。
行頭にある括弧の類をTabでインデントできるようにしたりした。
まだ全部が全部期待通りってワケじゃないけど、十分満足できるレベルになった。
1 2 3 4 5 6 7 8 |
// Move to outside of brackets { "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": [ { "key": "following_text", "operator": "regex_contains", "operand": "^[})'\"\\]]", "match_all": true }, { "key": "preceding_text", "operator": "not_regex_contains", "operand": "^[ \t]*$", "match_all": true }, { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] } |
下書きのまま眠ってた... eclipseだと()の中から外へtabを使えば移動できるけど、 SublimteTextではtabを押しても()の外へ移動できない。 そこで移動する方法を調べてみたところ、 以下の設定をKey Bindings -Userに以下の設定を追加することで ()の外へキーボードショートカットで移動できるようになったのでメモ。 // shift + tabで()の外に移動 { "keys": , "command": "move", "args": {"by": "characters", "forward": true}, &qu... SublimeTextでカッコの外にジャンプするキーボードショートカット - Katzhide'... - Katzhide's Blog |