當使用Sublime text3時會遇到快捷鍵沖突的問題,其中就有安裝Emmet之后,tab無法縮進了, 網上有些說看看Browse Packages目錄下是否有PyV8插件安裝,該插件一般情況下隨Emmet安裝的,但不排除網絡問題安裝失敗。這是第一步,
第二,以上兩個插件都正常安裝后,tab鍵仍然無效, 此時需要在 Preference -> Key Bindings ,在右側中括號內添加以下代碼,
之前自己挖了個坑,把代碼添加到了 Perference -> package settings -> emmet -> key bindings user內,如此是無法解決問題的。
最后,最好重啟下sublime。
1 { "keys": ["tab"], "command": "expand_abbreviation_by_tab", 2 "context": [ 3 { 4 "operand": "source.js", 5 "operator": "equal", 6 "match_all": true, 7 "key": "selector" 8 }, 9 { 10 "key": "selection_empty", 11 "operator": "equal", 12 "operand": true, 13 "match_all": true 14 } 15 ] 16 }, 17 { "keys": ["tab"], "command": "next_field", "context": 18 [ 19 { "key": "has_next_field", "operator": "equal", "operand": true } 20 ] 21 }