如何禁用VSCode中的默认提示信息?有时候很烦人。
edit .hover.enabled:设置为false。json到工具提示
单击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版)
转到文件=>首选项=>设置
文本编辑器=>
单击settings.json中的Edit
"editor.parameterHints.enabled": false,
"editor.suggest.snippetsPreventQuickSuggestions": false,
"html.suggest.html5": false,
更新您的建议选项并保存。
2018年8月前
转到文件=>首选项=>用户设置
您将找到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
我发现使用更大的编辑器>悬停:延迟(在设置搜索栏中搜索“延迟”)对我来说很有用。默认值是300ms。这并不能真正消除工具提示,但是让它们只在2秒后出现,对我来说,减少了视觉上的混乱。
下面是新手版本,假设你像我一样对VS Code知之甚少。
窗户 VS Code版本:1.37.1
在VS Code中: 按F1,然后输入“设置”或“首选项”-然后点击“首选项:打开用户设置” -或- 从顶部菜单:文件>首选项>设置 -或- 热键ctrl +, 在设置窗格中,输入“hover”(不需要按“enter”) “设置”窗格应该立即显示悬停设置 取消勾选“编辑器>悬停:已启用” 悬停禁用
Rockstar版本:编辑JSON像balla
F1然后输入“打开设置(JSON)” 或者, 导航到设置JSON文件并在VS Code中打开 https://code.visualstudio.com/docs/getstarted/settings#_settings-file-locations 将此添加到JSON文件(在花括号内,包括引号):"editor.hover。启用”:假 注意:每行后面需要一个逗号。如果你要加在上面,在这行后面加个逗号。如果你添加到底部,在前一行后面加一个逗号。 别忘了存钱! JSON是什么样的
如果您是编程新手,这些工具提示可以派上用场。相反,你可能想要像Logan建议的那样推迟他们的出现。
点击这里:https://stackoverflow.com/a/53512394/8623576 或者简单地向上滚动!:)
注意:我很欣赏其他人发布了几乎完全相同的答案,但是,正如我提到的,这是NOOB版本,假设用户几乎没有VS Code经验。
Cntrl + shift + P -> preferences: Open Settings (JSON)
"editor.parameterHints": false,
"editor.hover.enabled": false
这两个我都得做。
我使用的是Visual Studio Code v1.63.0,在设置中搜索“悬停”,发现“编辑器>悬停:延迟”和“编辑器>悬停:启用”。取消选中后者将禁用悬停。然而,我个人觉得它们很有用,但它们显示得太快了,所以我把“编辑器>悬停:延迟”从“300”增加到“5000”
如果你不是在寻找禁用,正如用户:Darrell Brogdon上面提到的,如果你想延迟工具提示的悬停时间作为解决方案,那么只需在用户设置中添加下面一行与你想要的时间值。 根据您的需要替换值3000。 注意:悬停设置在新版本的在线服务设置中被移动,因此你可能无法在用户设置中搜索“悬停”。
// modify in Preferences --> Settings or settings.json
"editor.hover.delay": 3000,
Arrrg ! !
Hope this helps others. Running with v1.72.1. For the life of me was trying all the different settings, options, suggesting and couldn't get the tooltip help disabled... Coffee might have been my solution, finally noticed in the tooltip window there is an 'x' in the upper right corner for a close, clicking it. WOW! It worked and seems to have persisted my desire to dismiss them. I wanted them gone.... Perfect!!! Thinking about it, don't see a way to get them back if someone might actually want them back. VS Code is nice for a lot of stuff, but pretty bad for some of it's design and usability...
推荐文章
- 如何设置每个文件类型的标签大小?
- 我如何添加环境变量启动。VSCode中的json
- 如何格式化Visual Studio Code项目中的所有文件?
- Pylint在Visual Studio代码中“未解决的导入”错误
- 如何在VS Code中默认打开文本换行
- 在Visual Studio代码中更改突出显示文本的颜色
- Visual studio代码-键盘快捷键-全部展开/折叠
- Visual Studio Code无法检测已安装的Git
- 禁用Visual Studio代码中的工具提示提示
- Visual Studio Code -将空格转换为制表符
- 在VSCode中的列自动硬换行
- Visual Studio Code:格式没有使用缩进设置
- 如何排除文件扩展名和语言从“格式保存”在VSCode?
- Visual Studio代码- URI的目标不存在" package:flutter/material.dart "
- VSCode——如何设置调试Python程序的工作目录