Skip to content

alecthomas/SublimeFoldPythonDocstrings

Repository files navigation

Sublime Text - Fold Python Docstrings

This plugin folds/unfolds Python docstrings.

It makes this:

Before folding

Look like this:

After folding

Installation

Using Package Control, install the "Fold Python Docstrings" package.

Key bindings

There are two commands exposed: fold_python_docstrings and unfold_python_docstrings.

On OSX these are bound to ⌘⇧- and ⌘⇧=, respectively.

Configuration

The following settings can be changed in User/Preferences.sublime-settings:

fold_python_docstrings_onload

Set to false to disable folding on initial load

fold_python_docstrings_number_of_lines

Set to this to an integer to fold the docstring to this number of lines

About

Automatically folds Python docstrings longer than 1 line.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •