Skip to content

thehogfather/brackets-custom-region-code-folding

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Custom region code folding

Define custom words to designate the beginning and end of a custom region. For example in your project's .brackets.json file, use "custom-region-fold.endRegionWord": "close" and "custom-region-fold.startRegionWord": "start" to set the words start and close as designators of the beginning and end of a custom region.

The custom regions should work in any language recognised in Brackets and the keywords for designating the start and end of a custom region can be declared anywhere within a line comment.

The following are examples - start and close are used as opening and closing keywords:

  1. You may annonate your custom folded region with any text, simply by ensuring the annotation appears before the keyword you've chosen as startRegionWord. Alt text

    Alt text

  2. Any words placed after the startRegionWord are hidden when the region is collapsed as shown below. Alt text

    Alt text

  3. And here is the scenario when there are no annotations Alt text

    Alt text

License

MIT-licensed.

About

Custom region code folding in brackets defined within comments

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published