如何控制visual studio 2017解决方案文件夹中的项目顺序? [英] How do I control order of items in visual studio 2017 solutions folder?

查看:1457
本文介绍了如何控制visual studio 2017解决方案文件夹中的项目顺序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚开始使用Visual Studio 2017.我在解决方案文件夹中添加了许多项目。这些令人困惑。有谁知道如何改变这里的项目顺序?简单的按字母顺序排列。



我的一些项目是:



\ SolutionItems

>> \ConfigFiles

>>>> Dev.config

>>>>直播。 config

>> Doxygen.doxycfg

>> RunDoxygen.bat

>> BuildExtras.txt



(注意:我使用'>'来表示文件夹缩进,因为我无法使问题编辑器缩进选项起作用。)



我尝试了什么:



我尝试右键单击解决方案资源管理器中的文件夹并选择属性。这提供了按字母顺序或按类别排序的选项,但单击这些选项似乎对项目的顺序没有影响。

解决方案

解决方案资源管理器中的大多数项目按字母顺序排序。没有选项可以改变这种行为。


关闭并重新打开解决方案似乎已经将其解决了。它现在首先放置文件夹然后列出文件,所有文件按字母顺序排序,正如在一个回复中指出的那样是正常行为。



感谢您的回复。 / BLOCKQUOTE>

I have just started using Visual Studio 2017. I have added a number of items to a solutions folder. These are in a confusing order. Does anyone know how to change the order of items in here? Simple alphabetical would do.

Some of the items I have are:

\SolutionItems
>>\ConfigFiles
>>>>Dev.config
>>>>Live.config
>>Doxygen.doxycfg
>>RunDoxygen.bat
>>BuildExtras.txt

(NOTE: I have used '>' to indicate folder indentation because I can't get the question editor indent option to work.)

What I have tried:

I have tried right-clicking the folder in Solutions Explorer and selecting Properties. This gives an option to sort either alphabetically or by category, but clicking these seems to have no effect on the order of the items.

解决方案

Most items in the Solution Explorer are sorted alphabetically. There are no options to change that behavior.


Closing and re-opening the solution seems to have sorted it out. It now puts folders first and then lists files, all sorted alphabetically, which as was pointed out in one reply is the normal behaviour.

Thank you for the replies.


这篇关于如何控制visual studio 2017解决方案文件夹中的项目顺序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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