Code Folding

Code Folding

Code-Faltung oder Code-Folding bezeichnet eine Funktion in Editoren, insbesondere in modernen integrierten Entwicklungsumgebungen, um logisch zusammengehörende Quelltextabschnitte wie Klassen oder Methoden in sogenannten Folds bzw. Falten zu gruppieren. Man kann die Abschnitte dann einfach ein- und ausblenden, als ob man ein Blatt Papier faltet, um bestimmte Zeilen auszublenden.

Die Code-Faltung hat nichts mit den ähnlich klingenden Faltungscodes zu tun.

Inhaltsverzeichnis

Programme mit Unterstützung für Code-Faltung

Entwicklungsumgebungen

Freie Software

proprietäre Software

Editoren

Benutzerdefinierte Editor-Falten

Einige Editoren erlauben es auch, benutzerdefinierte Falten zu definieren. Hier einige Beispiele:

  • Vim, am Beispiel von C++-Code:
  int function () //{{{
  {
    ''Programmcode''
  }
  //}}}

Zusammengefaltet sieht dieser Abschnitt folgendermaßen aus:

 +--  5 Zeilen: int function () //---------------------------

Statt {{{ und }}} können auch andere Markierungen verwendet werden.

// <editor-fold defaultstate="collapsed" desc="Beschreibung">
  Quelltext
// </editor-fold>
#pragma region Beschreibung
  Quelltext
#pragma endregion

Wikimedia Foundation.

Игры ⚽ Поможем сделать НИР

Schlagen Sie auch in anderen Wörterbüchern nach:

  • Code folding — is a feature of some text editors, source code editors and IDEs that allows the user to selectively hide and display sections of a currently edited file as a part of routine edit operations. This allows the user to manage large amounts of text… …   Wikipedia

  • Code-Faltung — oder Code Folding bezeichnet eine Funktion in Editoren, insbesondere in modernen integrierten Entwicklungsumgebungen, um logisch zusammengehörende Quelltextabschnitte wie Klassen oder Methoden in sogenannten Folds bzw. Falten zu gruppieren. Man… …   Deutsch Wikipedia

  • Folding editor — A folding editor is a text editor which supports text folding or code folding, a mechanism allowing the user to hide and reveal blocks of text mdash;usually named. Typically this is done to allow the user to better picture the overall structure… …   Wikipedia

  • Code::Blocks — Not to be confused with the computer programming term code block. Code::Blocks Code::Blocks 10.05 running on Windows Vista …   Wikipedia

  • Folding@home — Original author(s) Vijay Pande Developer(s) Stanford University / Pande lab Initial release 2000 10 01 …   Wikipedia

  • Folding@home — Développeur Université Stanford Première version …   Wikipédia en Français

  • Folding@Home — est un projet de calcul réparti. Son but est d étudier le repliement de protéine dans diverses configurations de température et de pression afin de mieux comprendre ce processus et d en tirer des connaissances utiles qui pourraient, entre autres …   Wikipédia en Français

  • Folding at home — Folding@Home Folding@Home est un projet de calcul réparti. Son but est d étudier le repliement de protéine dans diverses configurations de température et de pression afin de mieux comprendre ce processus et d en tirer des connaissances utiles qui …   Wikipédia en Français

  • Folding — Fold may refer to:*Above the fold, a graphic design concept originating in newspapers *Fold (from the Saxon falod ) meaning a staked off pasture area (e.g. Sheepfold, an enclosure for sheep) and used in place names such as the Fold Villages.… …   Wikipedia

  • Code browser — A code Browser is an editor, sometimes with folding or other advanced layout capabilities, designed to structure source code or, by extension, other kinds of text file. Since it is typically aware of the syntax (and, to some extent, the… …   Wikipedia

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”