突出显示 Visual Studio Code C++ 扩展中的错误语法 [英] Highlight error syntax in Visual Studio Code C++ extensions

查看:40
本文介绍了突出显示 Visual Studio Code C++ 扩展中的错误语法的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以使用 Visual Studio Code C++ 扩展来检查语法错误?例如,将突出显示以下错误语法.

std::vectorr vec;

解决方案

.Microsoft

红色波浪线始终存在,而鼠标悬停时会出现弹出窗口.

我建议您阅读 C++ 入门 VSCode 教程以确保您已正确配置所有内容.

Is it possible to have the Visual Studio Code C++ extensions to check syntax error? For example, the below error syntax would be highlighted.

std::vectorr vec;

解决方案

Yes. The Microsoft C/C++ extension checks for and indicates syntax errors, among other things. Example:

The red squiggly line is always there, while the popup appears on mouse hover.

I recommend going through the Getting Started with C++ tutorial for VSCode to make sure you've got everything configured right.

这篇关于突出显示 Visual Studio Code C++ 扩展中的错误语法的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆