VS Code Intellisense don't suggest snippet at first

懵懂的女人 提交于 2019-12-02 17:27:12

You need to use editor.snippetSuggestions config option with "top" value. Please, see Customizing IntelliSense article for more tips and tricks.

There is one more way to deal with this issue by setting "editor.tabCompletion": true, that way whenever there is a snnipet available it will use it automatically without even opening the list by using tab twice.

  1. File > Preferences > Settings (Code > Preferences > Settings on Mac)
  2. open "Editor" menu on the left
  3. edit "editor.tabCompletion": true

more info: https://code.visualstudio.com/docs/editor/intellisense#_customizing-intellisense

Now that VS Code mostly abstracted away the settings.json file, you can do the instructions shown by Kavu, with this bonus tip:

  • go to Preferences > Settings

  • find the Search settings text input, at the top

  • type in "snippet"

The setting should be at the top of the result set:

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