Skip to content

Feature request: Code folding #900

@comesuccingfuccsloot

Description

@comesuccingfuccsloot

hola.

i tried looking for a way to fold blocks of code (in my case Javascript code) in fresh, but couldn't find any way to do it.
i assume it's not yet implemented?

if so, consider this my official feature request for code folding to be implemented and added to fresh.
it's extremely helpful for the readability and developer-ergonomics of bigger code files/projects.

P.S. if it gets implemented, i would absolutely LOVE if in addition to the basic "collapse"/"expand" functionality fresh also supported:

  • nested fold regions, as-in being able to:
    1. fold some block of code
    2. fold the outer block that contains the already folded section of code
    3. so that unfolding the outer section would not unfold the inner section
  • remembering the folded regions, on e.g. editor restart or file close/open or project switch
  • quick-folding and -unfolding the active file based on indentation depth (e.g. pressing CTRL+K and then CTRL+1 would fold all code in the current file at the first tab-stop, CTRL+K followed by CTRL+2 would fold all code at the second tab-stop, etc. and same thing for unfolding)

those additional features help save so much time when working on big projects that require folding a lot of code often.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions