2017-09-29 4 views
1

각 파일이 부분 클래스를 갖고있는 상태에서 C# 코드가 다른 파일로 분할되는 일부 응용 프로그램을 보았습니다. 내가 보는 바로는 이들이 예처럼 맥에서 Visual Studio에서 들여 쓰기 표시되도록하는 것이 가능하다 :Visual Studio에서 MAC에 들여 쓰기 된 파일

file1 
    file1.data 
    file1.commands 
    file1.bindings 

사람이

답변

2

그냥에서 <DependentUpon /> 태그를 추가 나는이 시각적 인 효과를 얻을 수있는 방법을 말해 줄 수 귀하의 csproj 파일.

<Compile Include="file1.cs" /> 
<Compile Include="file1.data.cs"> 
    <DependentUpon>file1.cs</DependentUpon> 
</Compile> 
<Compile Include="file1.commands.cs"> 
    <DependentUpon>file1.cs</DependentUpon> 
</Compile> 
<Compile Include="file1. bindings.cs"> 
    <DependentUpon>file1.cs</DependentUpon> 
</Compile> 

확장 프로그램을 설치하지 않으면 visual-studio에서 바로 가기를 수행 할 수 있다고 생각하지 않습니다. 텍스트 편집기에서 csproj를 수동으로 편집해야합니다. 또한, 아직 Mac 용 VS에서 사용할 수있는 플러그인이 없다고 생각합니다.

참고 : - 차례를 위해 VS와 호환되어야합니다 MonoDevelop 사용할 수있는 nesting add-in (베타)가 같은

  1. Nesting Files In Visual Studio
  2. Introducing File Nestor for Visual Studio

EDIT 1 은 같은데 맥.