use regions in MVS2015 for php files [ 1286 views ]
Goal: I want fold-able code for php like I have to js files
The texteditor-like editors are great but without regions your life would be difficult. The Microsoft Visual Studio platform provides a very nice feature to use regions.
The simpliest way is the following form – you can use it for javascript
... //#region [name for the region] ... your foldable code coming here //#endregion [name for the region <- if you want, easy to follow the end of the opened region] ...
The php form is a little bit different
... #region [name for the region] ... your foldable code coming here #endregion [name for the region <- if you want, easy to follow the end of the opened region] ... or ... //region [name for the region] ... your foldable code coming here //endregion [name for the region <- if you want, easy to follow the end of the opened region] ...