在 Visual Studio (c++) 中识别重载运算符 [英] Identifying overloaded operators in Visual Studio (c++)

查看:38
本文介绍了在 Visual Studio (c++) 中识别重载运算符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以使用 Visual Studio 快速直观地识别 c++ 中的重载运算符?

Is there any way to quickly visually identify overloaded operators in c++ using Visual Studio?

C++ 中 IMO 的一大问题是不知道您使用的运算符已重载.

One of the big gotchas IMO in c++ is not knowing that the operator you are using is overloaded.

Visual Studio 或某些第三方工具中是否有可以自动突出显示或颜色代码重载运算符的功能?

Is there something within Visual Studio or some third party tool which will automatically highlight or color-code overloaded operators?

推荐答案

AFAIK,Visual Assist 确实做了很多增强的语法突出显示,但没有突出显示重载的运算符.如果我错了,请纠正我.

AFAIK, Visual Assist really does a lot of enchanced syntax highlighting, but does not highlight overloaded operators. Correct me if I'm wrong.

如果你需要做大量的代码探索,我建议在 Eclipse+CDT 中进行.在许多其他有用的功能中,它还突出了重载运算符.

If you need to do much code exploring, I suggest doing it in Eclipse+CDT. Among many other useful features it also highlights overloaded operators.

这篇关于在 Visual Studio (c++) 中识别重载运算符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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