Mehrdad Shokri
Mehrdad Shokri

Reputation: 2134

Visual Studio Code doesn't insert snippet

I have installed Reactjs code snippets code snippet extension.
Snippets used to work Until I installed PHP Storm Keymap extension. In a JSX (or JS) file when I try to add snippet the editor converts it to a tag instead of completing the snippet. ( It will convert rcc to <rcc></rcc> instead of completing snippet.)
I checked my Keyboard Shortcuts both, exmpandAbbreviation and insertSnippet are set on tab I tested changing insertSnippet to other keybinding but it still doesn't work. Any thoughts?

Upvotes: 0

Views: 1864

Answers (2)

Adam Falchetta
Adam Falchetta

Reputation: 85

I went to my setting.json file and had to delete this line

"editor.snippetSuggestions": "none",

and that worked.

Upvotes: 0

Mehrdad Shokri
Mehrdad Shokri

Reputation: 2134

Apparently adding

 "editor.tabCompletion": true

to settings.json solves the problem.

Upvotes: 2

Related Questions