简单的问题,我刚刚在Windows上开始使用Sublime Text 2进行编码,我想改变一些小事情,比如当我输入if语句(例如if(i> 0))时,我输入"0"之后,我的光标在"0"和")"之间,所以如果我按下Enter,我希望它跳到")"之后.我习惯了日食,所以我想知道如何设置模仿eclipse的设置.我已经尝试编辑设置文本文件但找不到我要找的东西.
尝试将以下内容添加到您的用户密钥绑定(可通过Preferences -> Key Bindings - User)
{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true},
"context": [
{ "key": "selection_empty", "operator": "equal", "operand": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "[[:space:]]*", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^[\\)]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]}
Run Code Online (Sandbox Code Playgroud)
编辑:将正则表达式更新为仅匹配括号.
| 归档时间: |
|
| 查看次数: |
148 次 |
| 最近记录: |