ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Auto​Fold​Code

by RIDE-2DAY ST3

A Sublime Text package that saves/restores folded code regions in files automatically.

Details

  • 1.1.1
  • github.​com
  • github.​com
  • 11 months ago
  • 58 minutes ago
  • 2 years ago

Installs

  • Total 3K
  • Win 2K
  • OS X 649
  • Linux 503
Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7
Windows 0 2 10 5 0 8 5 1 6 4 6 6 2 6 1 0 3 5 6 2 4 3 1 2 2 2 5 4 5 5 2 4 4 7 3 1 3 4 5 4 2 1 0 2 5 3
OS X 0 0 3 1 0 0 0 4 0 1 2 0 3 1 0 1 1 4 5 1 0 3 0 2 5 1 4 1 0 0 1 2 1 1 3 1 0 2 0 1 1 2 2 0 0 2
Linux 0 1 1 0 1 1 1 1 0 0 2 1 1 1 0 1 1 0 1 1 0 2 2 1 1 1 3 1 0 0 1 0 2 2 1 0 1 0 0 2 1 1 1 1 0 0

Readme

Source
raw.​githubusercontent.​com

AutoFoldCode

A Sublime Text package that saves/restores folded code regions in files automatically.

This plugin makes folded code regions persist - whether you're just opening/closing a file, starting/quitting Sublime Text or rebooting your computer, AutoFoldCode will restore your folded code with no hassle.

Thank you for checking this out, if you want to support what I do you might buy me a coffee!

Installation

Automatic (preferred)

  1. Open the Command Palette, and find Package Control: Install Package.
  2. Search for AutoFoldCode and install.

Manual

# To install, clone this repository into you Sublime Packages directory:
cd /path/to/packages/directory
git clone https://github.com/RIDE-2DAY/AutoFoldCode.git

# To update to the latest:
git pull origin master

Usage

Once installed, AutoFoldCode will automatically begin persisting code folds.

This package includes some useful commands:

  • AutoFoldCode: Clear All
    • This command will clear AutoFoldCode's cache, and unfold any folded regions in open views.
  • AutoFoldCode: Clear Current File
    • This command will remove the current file's folded regions from the cache, and unfold all folded regions in the file.
  • AutoFoldCode: Unfold All Open Files
    • This unfolds all open files in all open windows.
    • If you want to just unfold just the current file, Sublime Text already includes the "unfold_all" command for this.

FAQ

  • “When I start Sublime Text, my code folds aren't restored immediately”
    • This is because AutoFoldCode hasn't loaded yet. Once Sublime Text initialises AutoFoldCode, then your folds will be restored.
  • “Sometimes AutoFoldCode folds my code in the wrong places”
    • This will occur if you have closed Sublime Text, edit the file with another editor, then re-open Sublime Text.

Credits

Many thanks to the contributors!
And of course, thanks to the great developers at Sublime Text.

License

MIT