Sublime Forum

Fold Javascript Functions

#1

Hello, I made a plugin for Sublime Text 3 for Javascript code. This plugin folds all functions except where your cursor is. This effectively removes all out-of-scope contexts, giving you a clean overview and reducing a lot of noise while programming in JavaScript.

Extra feature: Besides quickly folding code, it’s also useful to quickly unfold it. Usually you have to press that tiny tiny triangle in the gutter. I added a function that allows double clicking on the […] that opens a folded block of code.

I hope someone finds this useful!

Installation
Install Fold JS Functions through package control
Or download manually from https://github.com/LuckyKat/sublime-fold-functions and copy it into the packages folder.

Usage
Use the Fold JS Functions command or use ctrl+alt+k or cmd+alt+k shortcut to fold.

Requirements
Needs the latest Sublime Text 3 version.

0 Likes