讓Sublime text按下tab後可以自動跳到匹配的括號後面

Sublime text的自動括號匹配的功能很方便也很實用,但是在輸入完括號內的字卻還要按幾次右鍵才能到括號的後面去繼續編輯就顯得有點美中不足。所幸,藉由sublime text本身強大的設定功能,只需要將下面的設定加入到Preference->Key Binding - User後,就可以按下tab快速地跳到括號後面繼續編輯了。

[][1]

[{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":  
 { "key": "following_text", "operator": "regex_contains", "operand": "^[)\"\\]]", "match_all": true },  
 { "key": "auto_complete_visible", "operator": "equal", "operand": false }  
 ]  
}]  
[參考來源][2]

[1]:

comments powered by Disqus