Skip to content

Code un/folding with a keyboard shortcut #6810

@yulkang

Description

@yulkang

Problem Description

I wish I can fold/unfold code with a keyboard shortcut. In the current version (master, 4.0.0.dev0), I cannot find a keyboard shortcut for un/folding.

If someone can point to me which parts I need to look at, I would probably be able to implement it myself. I will appreciate pointers including:

  • which function folds/unfolds the code
  • which module lists/implements the shortcuts
  • anything else that is relevant

What steps will reproduce the problem?

(N.A.)

What is the expected output? What do you see instead?

Paste Traceback/Error Below (if applicable)

PASTE TRACEBACK HERE

Package Versions

  • Spyder: 4.0.0.dev0
  • Python: 3.5.2
  • Qt: 5.6.2
  • PyQt: 5.6
  • Operating System: macOS 10.12.6

Dependencies

pyflakes >=0.6.0 :  1.6.0 (OK)
pycodestyle >=2.3:  2.3.1 (OK)
pygments >=2.0   :  2.2.0 (OK)
pandas >=0.13.1  :  None (NOK)
numpy >=1.7      :  1.13.3 (OK)
sphinx >=0.6.6   :  1.6.4 (OK)
rope >=0.9.4     :  0.10.7 (OK)
jedi >=0.11.0    :  0.11.1 (OK)
psutil >=0.3     :  5.3.1 (OK)
nbconvert >=4.0  :  5.3.1 (OK)
sympy >=0.7.3    :  None (NOK)
cython >=0.21    :  None (NOK)
qtconsole >=4.2.0:  4.3.1 (OK)
IPython >=4.0    :  6.2.1 (OK)
pylint >=0.25    :  1.7.1 (OK)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions