c++ - 如何激活 Visual Studio 代码中的错误波?
问题描述
我最近开始使用 Visual Studio Code for C++(安装的扩展:C++ 和 Code Runner),有时即使一切都正确,代码下的那些红色错误波也会显示,然后唯一的“快速修复”选项是停用它们。我对海浪很恼火,所以我停用了它们——现在我不知道如何重新激活它们(嗯,大多数时候它们实际上是有帮助的)!我在设置中一无所获,即使在重置所有内容后他们也没有回来。你能给我一个提示如何再次激活它们吗?
解决方案
要在 Visual Studio 代码中禁用或启用波浪/波浪下划线,请转到 file\preferences 并更改一些设置
要禁用:
{
"workbench.colorCustomizations": {
"editorError.foreground": "#00000000",
"editorWarning.foreground": "#00000000",
"editorInfo.foreground": "#00000000"
}
}
启用:(此颜色是建议):
{
"workbench.colorCustomizations": {
"editorError.foreground": "#ff000088",
"editorWarning.foreground": "#ffe60033",
"editorInfo.foreground": "#00ff0088"
}
}
推荐阅读
- python - 如何调整这个 Newton-Raphson for 循环以包含我初始猜测的一系列值,以便它打印每个迭代的次数?
- javascript - 脚本 if else 语句不能自动工作
- windows - Windows Server Core 2016 RODC 一致复制问题在桌面 WIndows Server 部署中并不持久:
- visual-studio-code - VSCode中“底部面板可见性状态”的子句上下文是什么时候?
- kotlin - gradle kotlin dsl:复制项目依赖项
- python - 考虑标点符号,将太长的文本分成相似的块
- python - 如何将多个变量分配给字典
- java - 按升序对列表进行排序,出现系统越界错误
- javascript - Vue-leaflet地图叠加无限重复
- laravel - 如何在 laravel 模型中使用 boot()?