2016-09-13 43 views
0
  • VSCode版本:1.5.2
  • OS版本:Ubuntu的16.04
  • settings.json短埃米特縮寫不要對CSS/SCSS工作

    { 
        "editor.snippetSuggestions": "top", 
        "editor.tabCompletion": true 
    } 
    

    當我嘗試使用埃米特快捷鍵CSS/SCSS,例如:

    而我打標籤來完成,我得到這個:

相反的color,類似的行爲與bg。我確實發現了駭客解決方案:"editor.quickSuggestionsDelay": "500"。但想知道是否有更好的解決方案來解決這個問題。

回答

1

我建議你改變你的鍵綁定有以下:

(菜單:首選項>鍵盤快捷鍵)

{ "key": "enter", "command": "acceptSelectedSuggestion", 
        "when": "editorTextFocus && suggestWidgetVisible" }, 
{ "key": "tab", "command": "editor.emmet.action.expandAbbreviation", 
        "when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !editorHasSelection && !editorReadonly && !editorTabMovesFocus" } 

唯一的問題是,接受來自智能感知任何建議,你就必須從現在開始使用enter而不是tab