2015-12-03 17 views
2

我使用Visual Studio 2013年SCSS文件未在Solution Explorer在Visual Studio分組

在Solution Explorer中,SCSS文件通常有自己的CSS,.css.map,.min.css文件組合在一起在.scss文件下的樹中。但是,我的解決方案資源管理器正在單獨顯示它們,這造成了一些混亂。

任何人都可以幫助我,讓我知道一個快捷方式/把戲讓這些文件再次分組在一起嗎?

回答

2

要麼手動編輯項目文件或使用這個漂亮的Visual Studio擴展的:

enter image description here

手動關鍵是要編輯的項目文件,並添加DependentUpon元數據到每個文件要展示嵌套:

<ItemGroup> 

    <!-- This will cause Visual Studio to show the file under Foo.1.cs --> 
    <Compile Include="Foo.1.1.cs"> 
     <DependentUpon>Foo.1.cs</DependentUpon> 
    </Compile> 

    <!-- This will cause Visual Studio to show the file under Foo.cs --> 
    <Compile Include="Foo.1.cs"> 
     <DependentUpon>Foo.cs</DependentUpon> 
    </Compile> 
    <Compile Include="Foo.cs" /> 
    <Compile Include="Program.cs" /> 
    <Compile Include="Properties\AssemblyInfo.cs" /> 
    </ItemGroup> 

來源:

+0

非常好的插件,謝謝! – Flignats

相關問題