一般我们在没vscode里面没有设置的话是没有行内样式提示的,效果图如下:
完美解决方法如下:
设置 -> 搜索prevent -> 把Snippets Prevent Quick Suggestions 勾掉即可
且在设置->搜索Schemas ->点击(在settings.json中编辑)把一下代码粘贴进去
"editor.suggest.snippetsPreventQuickSuggestions": false,
"editor.parameterHints": true,
"editor.quickSuggestions": {
"other": true,
"comments": true,
"strings": true
},
**注意:**这行代码是上面prevent去掉那个勾后添加进设置的,不能去掉
"editor.suggest.snippetsPreventQuickSuggestions": false,
设置好以上操作后,无需重启vscode,直接可以去页面试验,以下是效果图