raj
raj

Reputation: 6094

No suggestions when code snippets are used in sublime

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.

Upvotes: 1

Views: 209

Answers (1)

Keith Hall
Keith Hall

Reputation: 16085

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,

Upvotes: 2

Related Questions