Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

folding code blocks in code editor #36

Open

Description

@bengolder

In the C# and VB.NET scripting components, it is possible to include functions below the main script, in the editor, and to collapse these code blocks.

It would be really nice to have the ability to collapse blocks of code, so that one could include a large amount of additional functions or classes in a script without compromising readability. This offers an alternative to importing packages.

Activity

  1. piac commented on May 17, 2012

    @piac
    Member

    Newer versions of Rhino 5 have an improved code folding strategy. Just making a function should make the inner scope properly foldable. Does it help?

  2. bengolder commented on Jun 13, 2012

    @bengolder
    Author

    Thanks Giulio, this does help. My only other concern is that fold persistence: if I give someone a ghpython component with folded functions and they open it, will those functions remain folded?
    I'll test and let you know.

  3. piac commented on Jun 13, 2012

    @piac
    Member

    Hello Ben

    it will not remain folded. Folding is usually just an editor help (.py files are simple text). And it does not stick in the _EditPythonScript editor, so it won't stick in the GhPython editor either, sorry. What should the next reader understand from the folding strategy?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions