Reputation: 391
In Visual Studio Code, snippets is not work in comments or string. For example, I create snippet 't' for 'test', then type 't' in comment like
# t
or in string like
"this is a string t"
then there no suggestion and press 'tab' is not work.
How to use snippets in comment and string, in visual studio code?
Upvotes: 5
Views: 2329
Reputation: 391
In User Setting
, put the following:
"editor.quickSuggestions": { "comments": true, "strings": true },
Upvotes: 6