![](/img/trans.png)
[英]Is there a #pragma mark (objective c) equivalent in Visual Studio
[英]Visual Studio/C# code similar to #pragma mark in Xcode
Visual Studio / C#中是否有類似於Xcode的#pragma mark
指令的代碼片段?
例如,在Xcode中設置#pragma mark Some Part Of Code
時,“部分代碼”在方法枚舉下拉列表中以粗體顯示,因此您可以根據其功能使用它來分組方法,並在以后需要時更容易找到它們。
如果您使用Xamarin Studio在C#中工作,
去:
Xamarin首選項 - >文本編輯器 - >常規 - >然后啟用代碼折疊
然后你可以用,
#region SomeRegion
//...Group of code...
#endregion // end of MyRegion
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.