2016-08-15 35 views
0

每當我崇高鍵入'它增加了終止引號',並將光標放在中間是這樣的:'|'如何禁用崇高完成字符串和保持自動縮進

也是一樣"是被擴大到"|"

這是我不希望的行爲,我發現把它關掉的唯一途徑是通過設置:

"auto_indent": false, 

然而,這使得繁瑣的編寫縮進代碼。

反正有沒有得到崇高不完整字符串文字並保持auto_indent

我在Windows上測試了Sublime 3 Build 3114,在Linux上測試了Sublime 3 Build 3083。

+0

的設置應該是'auto_match_enabled' –

+0

嗨。似乎工作。正在讓我瘋狂。謝謝。將其作爲答案,我接受它。 – FuleSnabel

回答

2

設置的名稱應該是auto_match_enabled爲你定義默認的按鍵綁定看到:

// Auto-pair 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": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true }, 
     { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true } 
    ] 
},