The extension provides the following configuration options:
ibmiSourceFold.enableCommentFolding: Enable folding of comment blocks (default: true)
ibmiSourceFold.enableProcedureFolding: Enable folding of procedure definitions (default: true)
ibmiSourceFold.enableSubroutineFolding: Enable folding of subroutine blocks (default: true)
ibmiSourceFold.enableIfGroupFolding: Enable folding of IF/ENDIF groups (default: false)
ibmiSourceFold.enableDspfRecordFolding: Enable folding of DDS record formats (default: true)
Installation
Clone this repository
Run npm install
Run npm run compile
Open the project in VS Code
Press F5 to launch the extension
Usage
The extension automatically provides folding when you open an IBMi source file. Use the folding icons in the gutter (left side of the editor) to collapse and expand code blocks.