如何根据声明顺序对方法实现进行排序 [英] How can I sort method implementations according to their declaration order

查看:30
本文介绍了如何根据声明顺序对方法实现进行排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何 Visual Studio 2008 插件或宏可以根据 .h 文件中的声明顺序对 .cpp 文件中的方法实现进行排序?任何最近的 Visual Studio(2010、2013、2015、2017、2019)

Is there any Visual Studio 2008 add-in or macros to sort method implementations in .cpp file according to the order of their declarations in .h file? any recent Visual Studio (2010, 2013, 2015, 2017, 2019)

推荐答案

虽然不是提交者要求的工具....我个人折叠所有函数体 (CTRL+M+O),然后手动对其进行排序...

Although not a tool as the submitter asked for.... i personally collapse all function bodies (CTRL+M+O) and then manually order them...

但 VA 再次允许您在下拉文本编辑器控件中按字母顺序查找方法

but again VA allows you to look for methods by alphabetic order in their drop down text editor control

这篇关于如何根据声明顺序对方法实现进行排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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