In computer programming, an indent style is a convention governing the indentation of blocks of code to convey the program's structure. This article largely addresses the C programming language and its descendants, but can be (and frequently is) applied to most other programming languages (especially those in the curly bracket family). Indent style is just one aspect of programming style.

PropertyValue
p:abstract
  • In computer programming, an indent style is a convention governing the indentation of blocks of code to convey the program's structure. This article largely addresses the C programming language and its descendants, but can be (and frequently is) applied to most other programming languages (especially those in the curly bracket family). Indent style is just one aspect of programming style. Indentation is not a requirement of most programming languages. Rather, programmers indent to better convey the structure of their program to human readers. In particular, indentation is used to show the relationship between control flow constructs such as conditions or loops and code contained within and outside them. However, some programming languages (such as Python and Occam) use the indentation to determine the structure instead of using braces or keywords. The size of the indent is usually independent of the style. Many early programs used tab characters for indentation, for simplicity and to save on source file size. Unix editors generally view tabs as equivalent to eight characters, while Macintosh environments would set them to four, creating confusion when code was transferred back and forth. Modern programming editors are now often able to set arbitrary indentation sizes, and will insert the appropriate combination of spaces and tabs. They can also help with the cross-platform tab confusion by being configured to insert only spaces. There are a number of computer programs that automatically correct indent styles as well as the length of tabs. A famous one among them is indent, a program included with many Unix-like operating systems. These programs work best for those who use an indent style close to that considered "proper" by their programmers; those who use other styles will more likely become frustrated. (en)
  • Als Einrückungsstil (engl. indent style) wird die Art und Weise bezeichnet, Quelltext von Programmen zwecks Lesbarkeit einzurücken und umschließende Syntax-Elemente wie geschweifte Klammern {} zu positionieren. Als alternativer Name ist daher auch manchmal „Klammerstil“ (engl. brace style) anzutreffen. Für die Programmiersprache C gibt es vier verbreitete Einrückungsstile, die auch in Programmiersprachen mit C-ähnlicher Syntax wie C++, Java, ECMAScript, Perl oder C# übernommen wurden. Die Positionierung der geschweiften Klammern ist wahrscheinlich das umstrittenste Element eines Programmierstils. (de)
  • Le style d'indentation décrit les différentes manières que les programmeurs utilisent pour faire ressortir un bloc de code. (fr)
  • 字下げスタイルまたはインデントスタイル(英: Indent style)とは、プログラミングにおいてプログラムの構造を明らかにするために、コードのブロックの字下げをどうするかを決めたものである。本項ではC言語やそれに類似した言語を主に扱うが、他のプログラミング言語(特に括弧を使用してブロックを記述する言語)にも適用可能である。字下げスタイルはプログラミング作法の一部である。 (ja)
  • Окно настроек форматирования KDevelop]] Стиль о́тступов — правила форматирования исходного кода, в соответствии с которыми отступы проставляются в удобочитаемой манере. Используемый стиль отступов обычно особо оговаривается в стандарте оформления кода. Редакторы текста, входящие в состав большинства популярных сред разработки, часто предоставляют средства для поддержки используемого стиля отступов, например, автоматическую вставку пробелов/табуляции при вводе скобок, обозначающих начало/конец логического блока. Несомненно, предмет данной статьи является причиной бесконечных «священных войн». (ru)
p:author
  • Lincoln, Abraham; Grant, U. S.; & Davis, Jefferson (en)
p:date
  • Month Day (en)
p:editor
  • Stephen A. Douglas (en)
p:hasPhotoCollection
p:id
  • ISBN 0-12-345678-9 (en)
p:publisher
  • Gettysburg: Printing Press (en)
p:reference
p:title
  • Resolving Family Differences Peacefully (en)
  • Title of page (en)
p:url
p:wikiPageUsesTemplate
p:wikipage-de
p:wikipage-fr
p:wikipage-ja
p:wikipage-ru
p:work
  • Title of Complete Work (en)
p:year
  • Year (en)
  • 1861 (xsd:integer)
rdf:type
rdfs:comment
  • In computer programming, an indent style is a convention governing the indentation of blocks of code to convey the program's structure. This article largely addresses the C programming language and its descendants, but can be (and frequently is) applied to most other programming languages (especially those in the curly bracket family). Indent style is just one aspect of programming style. (en)
  • Als Einrückungsstil (engl. indent style) wird die Art und Weise bezeichnet, Quelltext von Programmen zwecks Lesbarkeit einzurücken und umschließende Syntax-Elemente wie geschweifte Klammern {} zu positionieren. Als alternativer Name ist daher auch manchmal „Klammerstil“ (engl. brace style) anzutreffen. (de)
  • Le style d'indentation décrit les différentes manières que les programmeurs utilisent pour faire ressortir un bloc de code. (fr)
  • 字下げスタイルまたはインデントスタイル(英: Indent style)とは、プログラミングにおいてプログラムの構造を明らかにするために、コードのブロックの字下げをどうするかを決めたものである。本項ではC言語やそれに類似した言語を主に扱うが、他のプログラミング言語(特に括弧を使用してブロックを記述する言語)にも適用可能である。字下げスタイルはプログラミング作法の一部である。 (ja)
  • Окно настроек форматирования KDevelop]] (ru)
rdfs:label
  • Indent style (en)
  • Einrückungsstil (de)
  • Style d'indentation (fr)
  • 字下げスタイル (ja)
  • Стиль отступов (ru)
skos:subject
foaf:page
p:redirect
owl:sameAs