在settings.json中的
editor.hover.enabled: false
到Tooltip
单击settings.json中的Edit
有两个窗格
默认用户设置
"editor.quickSuggestions": {
"other": false,
"comments": false,
"strings": false
}
用户设置
"editor.parameterHints.enabled": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"html.suggest.html5": false,
"editor.snippetSuggestions": "none",
这也可以做UI。
设置代码段建议:false
2018年8月更新(版本1.27)
转到File=>Preference=>Settings
Text Editor => Suggestions
单击settings.json中的Edit
"editor.parameterHints.enabled": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"html.suggest.html5": false,
更新您的建议选项并保存。
2018年8月之前
转到File=>Preference=>User Settings
你会发现settings.json
// Configures if the built-in HTML language support suggests Angular tags and properties.
"html.suggest.angular1": false,
"html.suggest.ionic": false,
"html.suggest.html5": false,
只需找到您的语言并设置suggest = false
更新
设置为关闭所有弹出窗口
"editor.parameterHints": false
要隐藏这些提示,您只需将"editor.parameterHints": false
添加到settings.json
即可。找到答案in here。
"editor.hover.enabled": false,
是你的防弹解决方案。然后你可以使用CTLR + K,CTLR + I.
在版本1.27.2上,我发现只有此参数禁用了所有工具提示:"editor.hover.enabled": false
。
我发现编辑器使用更大的值>悬停:延迟(在设置搜索栏中搜索“延迟”)对我有用。默认值为300毫秒。这并没有解决实际消除工具提示的愿望,但让它们仅在2秒之后出现,这对我来说减少了视觉上的混乱。
这里没有人提到的简单方法:代码→首选项→设置。搜索“悬停”。取消选中“编辑器>悬停:已启用”复选框。
对于版本1.31+这一行为我做了:
"editor.parameterHints.enabled": false