GithubHelp home page GithubHelp logo

brackets-code-folding's Introduction

#Code folding for Brackets A code folding extension for Brackets based on CodeMirror's folding addon. Peforms code folding based on brace ({}, []) matching and multiline comments for javascript, json, css, php and less files. Also has some support for html and xml files based on tag matching.

Features

  1. Define custom regions in any language recognised in Brackets by creating a line comment whose first word is region to designate the beginning of a region, and another line comment whose first word is endregion to designate the end of a region

  2. Collapse or expand all foldable child regions by holding down the Alt-key while clicking on fold triangles (as found in OSX Finder).

  3. Fold states are persisted to preferences file.

How to install

Navigate to Brackets > File > Install Extension and paste url https://github.com/thehogfather/brackets-code-folding

####Or manually

  1. Download
  2. Unzip in user folder in Brackets > Help > Show Extensions Folder
  3. Restart or Reload Brackets

Keyboard shortcuts

The following are the default keyboard shortcut keys for the code-folding extension.

Ctrl-Alt-C Collapse code region at current cursor position
Ctrl-Alt-X Expand code region at current cursor position
Alt-1 Collapse all code regions in current editor
Shift-Alt-1 Expand all code regions in current editor

##Known Issues

Conflicting keyboard shortcuts

If any of the shortcut keys above conflict with your keyboard or you would prefer to use another shortcut key for any reason, please use an extension like Brackets Key Remapper to change the shortcut keys to suit your needs.

EdgeCode support

If you are running edge code, the latest compatible version is v0.2.7. You can download and install from this url.

License

MIT-licensed.

Credits

CodeMirror folding addon.

Compatibility

Brackets Sprint 38 or later.

brackets-code-folding's People

Contributors

jjbocanegra avatar jkloss4 avatar mikevalstar avatar thehogfather avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.