VS2010解决方案资源管理器中的自定义文件排序 [英] Custom file sorting in VS2010 Solution Explorer

查看:1003
本文介绍了VS2010解决方案资源管理器中的自定义文件排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以强制Visual Studio 2010中的解决方案资源管理器按* .h,*.inl和* .cpp的字母顺序对文件进行排序?

Is there any way to force Solution Explorer in Visual Studio 2010 to sort files alphabetically but in order *.h, *.inl and *.cpp?

我想要

Dummy.h
Dummy.inl
Dummy.cpp
Emmy.h
Emmy.cpp
Grammy.h
Grammy.cpp

代替

Dummy.cpp
Dummy.h
Dummy.inl
Emmy.cpp
Emmy.h
Grammy.cpp
Grammy.h

推荐答案

不,没有内置此类功能.

No, there is no such feature built in.

我也不知道任何支持此功能的扩展或加载项,但我想您可以创建一个.开始使用 Visual Studio SDK ,或浏览 Visual Studio库出于类似目的.

I don't know of any extension or add-in that supports this, either, but I imagine that you could create one. Get started with the Visual Studio SDK, or browse the Visual Studio Gallery for something that serves a similar purpose.

但是,解决方案资源管理器确实支持将相关文件(例如标头,资源和代码文件)分组到虚拟文件夹中.通过取消选择解决方案资源管理器"窗口顶部标有显示所有文件"的左侧的第二个按钮,可以启用该功能.

However, the Solution Explorer does support grouping related files (such as headers, resources, and code files) into virtual folders. Turn that feature on by deselecting the second button to the left at the top of the Solution Explorer window labeled "Show All Files".

这篇关于VS2010解决方案资源管理器中的自定义文件排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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