Identifying overloaded operators in Visual Studio

2019-06-23 22:56发布

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

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

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

2条回答
啃猪蹄的小仙女
2楼-- · 2019-06-23 23:11

I don't know if there is a tool for this special use case, but for all sorts of anhanced syntax highlithing, refactoring and so on there is Visual Assist X, an add-in for Visual Studio.

查看更多
Luminary・发光体
3楼-- · 2019-06-23 23:28

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

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.

查看更多
登录 后发表回答