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.

PropertyValue
dbpprop: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 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. The topic issue of using hard tabs or spaces is an ongoing debate in the programming community. Some programmers feel that spaces instead of tabs increase cross-platform functionality. Others believe the opposite, that hard tabs increase cross-platform functionality. 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.
  • 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 Programmier- und Skriptsprachen mit C-ähnlicher Syntax wie C++, Java, JavaScript, Perl oder C# übernommen wurden. Die Positionierung der geschweiften Klammern ist wahrscheinlich das umstrittenste Element eines Programmierstils.
  • Indentación es un anglicismo (de la palabra inglesa indentation) de uso común en informática. y significa mover un bloque de texto hacia la derecha insertando espacios o tabuladores para separarlo del texto adyacente, lo que en el ámbito de la imprenta se ha denominado siempre como sangrado o sangría. En los lenguajes de programación de computadoras, la indentación se utiliza para mejorar la legibilidad del código fuente por parte de los programadores, teniendo en cuenta que los compiladores o intérpretes raramente consideran los espacios en blanco entre las sentencias de un programa. Sin embargo, en ciertos lenguajes de programación como Haskell, Occam y Python, la indentación se utiliza para delimitar la estructura del programa permitiendo establecer bloques de código. Son frecuentes discusiones entre programadores sobre cómo o dónde usar la indentación, si es mejor usar espacios en blanco o tabuladores, ya que cada programador tiene su propio estilo.
  • Le style d'indentation décrit les différentes manières que les programmeurs utilisent pour faire ressortir un bloc de code.
  • 字下げスタイルまたはインデントスタイル(英: Indent style)とは、プログラミングにおいてプログラムの構造を明らかにするために、コードのブロックの字下げをどうするかを決めたものである。本項ではC言語やそれに類似した言語を主に扱うが、他のプログラミング言語(特に括弧を使用してブロックを記述する言語)にも適用可能である。字下げスタイルはプログラミング作法の一部である。
  • Стиль о́тступов — правила форматирования исходного кода, в соответствии с которыми отступы проставляются в удобочитаемой манере. Используемый стиль отступов обычно особо оговаривается в стандарте оформления кода. Редакторы текста, входящие в состав большинства популярных сред разработки, часто предоставляют средства для поддержки используемого стиля отступов, например, автоматическую вставку пробелов/табуляции при вводе скобок, обозначающих начало/конец логического блока. Несомненно, предмет данной статьи является причиной бесконечных «священных войн».
dbpprop:author
  • Lincoln, Abraham; Grant, U. S.; & Davis, Jefferson
dbpprop:date
  • Month Day
dbpprop:editor
  • Stephen A. Douglas
dbpprop:hasPhotoCollection
dbpprop:id
  • ISBN 0-12-345678-9
dbpprop:publisher
  • Gettysburg: Printing Press
dbpprop:reference
dbpprop:title
  • Resolving Family Differences Peacefully
  • Title of page
dbpprop:url
dbpprop:wikiPageUsesTemplate
dbpprop:work
  • Title of Complete Work
dbpprop:year
  • Year
  • 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. Indentation is not a requirement of most programming languages.
  • 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.
  • Indentación es un anglicismo (de la palabra inglesa indentation) de uso común en informática. y significa mover un bloque de texto hacia la derecha insertando espacios o tabuladores para separarlo del texto adyacente, lo que en el ámbito de la imprenta se ha denominado siempre como sangrado o sangría.
  • Le style d'indentation décrit les différentes manières que les programmeurs utilisent pour faire ressortir un bloc de code.
  • Стиль о́тступов — правила форматирования исходного кода, в соответствии с которыми отступы проставляются в удобочитаемой манере. Используемый стиль отступов обычно особо оговаривается в стандарте оформления кода.
rdfs:label
  • Indent style
  • Einrückungsstil
  • Indentación
  • Style d'indentation
  • 字下げスタイル
  • Стиль отступов
owl:sameAs
skos:subject
foaf:page
is dbpprop:redirect of
is owl:sameAs of