如何在注释和字符串中使用片段

问题描述 投票:1回答:1

在Visual Studio代码中,片段在注释或字符串中不起作用。例如,我为'test'创建代码段't',然后在注释中输入't'

# t

或者像字符串一样

"this is a string t"

然后没有任何建议,按'标签'是行不通的。

如何在visual studio代码中使用注释和字符串中的片段?

visual-studio-code code-snippets
1个回答
1
投票

User Setting,提出以下内容:

"editor.quickSuggestions": {
    "comments": true,
    "strings": true
  },
© www.soinside.com 2019 - 2024. All rights reserved.