[Sublime Text 3]Tabキーでカーソルを括弧外へ移動する
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 } ] } |
この記事へのコメントはこちら