有了巨大的帮助从@JamieJag我已经分离出的问题。按住Shift +”正在产生什么崇高称之为‘印刷’引号,而不是双引号这是可分析作为PHP的一部分或HTML代码。
要解决这个问题,我在SublimeText2首选项 - >键绑定注释掉一切 - > user。
目前还不清楚这些JSON对象中的一个或全部是否对问题行为负责(尽管我猜第一个JSON看起来像是罪犯),但到目前为止只是将整个数组注释掉我的问题。
/*[
// Auto-pair typographical quotes
{ "keys": ["\""], "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 },
{ "key": "selector", "operator": "equal", "operand": "text", "match_all": true }
]
},
{ "keys": ["\""], "command": "insert_snippet", "args": {"contents": "“${0:$SELECTION}”"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text", "match_all": true }
]
},
{ "keys": ["\""], "command": "move", "args": {"by": "characters", "forward": true}, "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": "^\\”", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text", "match_all": true }
]
},
// Smart quotes before & after word
{ "keys": ["\""], "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": "^\\S", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text", "match_all": true }
]
},
{ "keys": ["\""], "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": "preceding_text", "operator": "regex_contains", "operand": "^\\S", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text", "match_all": true }
]
}
]*/
也许还有另一个插件,转移Shift的键盘映射?您是否尝试过查看所有非默认包的键盘映射? – JamieJag 2013-02-21 10:00:23
@JamieJag谢谢,你能告诉我该怎么做吗?我是一个崇高的新手 – 2013-02-21 11:56:30
这是一个单调乏味的过程 - 转到Preferences-> Browse Packages,在列出的每个文件夹中,您可以识别为您安装的软件包,请查看'Default(OSX).sublime-keymap 'shift +'或shift +' – JamieJag 2013-02-22 13:08:47