code completion not working in snippet VS Code

心已入冬 提交于 2020-01-11 09:51:13

问题


So when I create a class for example in visual studio code, I can do it all manual and then code completion works just fine see image below:

So in the image above I have typed all the code so far by hand NOT using any snippets.

But in the image below I created the class using a snipped see image below: But When I fill in the required fields from the snippet code completion is not working. See image below:

So my question really is how do I get code completion / suggestions to work inside of the fields of a snippet? Or is this not possible in vscode?

If any clarification or extra information is needed let me know so I can add it!


回答1:


Try changing this setting to false:

Editor › Suggest: Snippets Prevent Quick Suggestions

Control whether an active snippet prevents quick suggestions.

"editor.suggest.snippetsPreventQuickSuggestions": false

true is the default, sounds like you want false.



来源:https://stackoverflow.com/questions/57827672/code-completion-not-working-in-snippet-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!