How to use snippets in comment and string
Asked Answered
T

1

5

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?

Thrice answered 18/1, 2019 at 18:13 Comment(0)
T
6

In User Setting, put the following:

"editor.quickSuggestions": {
    "comments": true,
    "strings": true
  },
Thrice answered 18/2, 2019 at 6:45 Comment(2)
How to find where to put it: Command+P settings.json or through the nav bar: Code > Preferences > Settings > search for 'quick' > click the result to 'edit in settings.json'Hermosillo
This also works for workspace settings (/.vscode/settings.json)Toadflax

© 2022 - 2024 — McMap. All rights reserved.