No suggestions when code snippets are used in sublime

强颜欢笑 提交于 2019-12-08 06:28:08

问题


For example, when i type i suggestions come with if statement. And I press tabs for selecting if snippet. i get this.

  if(condition) {
    // code...
  }

But inside this snippet I no longer get any suggestions. I have to type everything. Why is this happening? Please help.


回答1:


Autocompletion inside snippets is disabled by default. You can enable it by changing the value of the auto_complete_with_fields preference to true:

// Controls if auto complete is shown when snippet fields are active.
// Only relevant if auto_complete_commit_on_tab is true.
"auto_complete_with_fields": true,


来源:https://stackoverflow.com/questions/41842405/no-suggestions-when-code-snippets-are-used-in-sublime

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!