如何实现代码文件折叠

假如我新建一个a.cs文件和一个a.cs.js文件,如何在解决方案管理器中让a.cs.js自动折叠在a.cs文件下面?

具体效果要求类似a.aspx能够折叠a.aspx.cs和a.aspx.designer.cs那样


紫衣仙女
浏览 635回答 2
2回答

慕森王

修改.csproj文件,类似下面的,其实就是DependentUpon&nbsp;<Compile Include="Implement\MallAttributeService.cs">&nbsp;&nbsp; &nbsp; &nbsp;<SubType>Code</SubType>&nbsp;&nbsp; &nbsp;</Compile>&nbsp;&nbsp; &nbsp;<Compile Include="Implement\MallAttributeService.gen.cs">&nbsp;&nbsp; &nbsp; &nbsp;<DependentUpon>MallAttributeService.cs</DependentUpon>&nbsp;&nbsp; &nbsp; &nbsp;<SubType>Code</SubType>&nbsp;&nbsp; &nbsp;</Compile>

精慕HU

添加一个文件包,把他们都放进去!目前只有这一个解决方案!
打开App,查看更多内容
随时随地看视频慕课网APP