fold code
The preprocessing instructions provided by the editor are only useful when editing. When we publish the code or execute the code, the folding will automatically cancel the
composition: #region and #endregion are paired with
the main function : in our programming process, Fold the code wrapped in the middle to avoid the code being too messy and make the logic clearer.
How to use:
- Enter #region
- press enter
- press tab
- Change the folded code name (describes what the middle wrapped code is for)
- Enter the content you want to fold between #region and #endregion
- Click the minus sign on the left to collapse that section
- Click the plus sign on the left to expand the collapsed content
Code example:
#region 变量
//折叠代码
//如何申明变量
// 为什么要有那么多不同类型的变量
//多个相同类型的变量 同时申明
//变量初始化
#endregion