[英]Visual Studio Code doesn't insert snippet
I have installed Reactjs code snippets code snippet extension.我已经安装了Reactjs 代码片段代码片段扩展。
Snippets used to work Until I installed PHP Storm Keymap extension.在我安装 PHP Storm Keymap 扩展之前,片段曾经可以工作。 In a JSX (or JS) file when I try to add snippet the editor converts it to a tag instead of completing the snippet.在 JSX(或 JS)文件中,当我尝试添加代码段时,编辑器会将其转换为标签,而不是完成代码段。 ( It will convert rcc to <rcc></rcc>
instead of completing snippet.) (它会将 rcc 转换为<rcc></rcc>
而不是完成代码段。)
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.我检查了我的键盘快捷键,在tab
上设置了exmpandAbbreviation
和insertSnippet
我测试将insertSnippet
更改为其他键绑定,但它仍然不起作用。 Any thoughts?有什么想法吗?
Apparently adding显然添加
"editor.tabCompletion": true
to settings.json
solves the problem.到settings.json
解决了这个问题。
I went to my setting.json file and had to delete this line我去了我的 setting.json 文件,不得不删除这一行
"editor.snippetSuggestions": "none",
and that worked.这奏效了。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.