C#
#region "comment"
[code]
#endregion
就可以在VS中实现代码折叠了
QtCreator
#pragma region "comment" {
[code]
#pragma endregion }
这样在QtCreator可以实现代码折叠
本文介绍了如何在VisualStudio(VS)中使用C#的`#region`和`#endregion`实现代码折叠,以及在QtCreator中通过`#pragmaregion`和`#pragmaendregion`来达到同样的效果。
#region "comment"
[code]
#endregion
就可以在VS中实现代码折叠了
#pragma region "comment" {
[code]
#pragma endregion }
这样在QtCreator可以实现代码折叠
9770
1257
8328
835

被折叠的 条评论
为什么被折叠?
