{ "keys": ["tab"], "command": "move",
"args": {"by": "characters", "forward": true},
"context":
[
{ "key": "following_text",
"operator": "regex_contains", "operand": "^[)\\]\\>\\(\\[\\<]", "match_all": true
}
]
},
{ "keys": ["ctrl+tab"], "command": "insert_snippet", "args": {"contents": "($0)"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
]
},
tab跳出括号
ctrl+tab添加括号

本文介绍了在Sublime Text3中,如何通过快捷键Tab和Ctrl+Tab实现Python代码中括号的自动补全和添加。Tab键可以用于跳出括号,而Ctrl+Tab组合键则用于快速添加括号,提高编程效率。

1996

被折叠的 条评论
为什么被折叠?



