Top "Indentation" questions

Indenting is used to organize code by indicating blocks, closures, conditionals, and other constructs.

Java: How to Indent XML Generated by Transformer

I'm using Java's built in XML transformer to take a DOM document and print out the resulting XML. The problem …

java xml transform indentation
How to make the tab character 4 spaces instead of 8 spaces in nano?

When I press TAB in nano editor, the cursor will jump with 8 spaces like this: def square(x): return x * …

tabs terminal indentation nano
How do I tidy up an HTML file's indentation in VI?

How do I fix the indentation of his huge html files which was all messed up? I tried the usual "…

html vim vi indentation
How can I use tabs for indentation in IntelliJ IDEA?

How can I use tabs instead of multiple spaces for indentation in IntelliJ IDEA 11.0? I have "Use tab character" checked …

intellij-idea indentation
IndentationError: unexpected unindent WHY?

IndentationError: unexpected unindent WHY??? #!/usr/bin/python import sys class Seq: def __init__(self, id, adnseq, colen): self.id = id …

python indentation
Indenting only the first line of text in a paragraph?

I have several paragraphs that I would like to indent, although only the first lines of these paragraphs. How would …

html css indentation target text-indent
How do I correctly organize output into columns?

The first thing that comes to my mind is to do a bunch of \t's, but that would cause words …

c++ tabs indentation cout
Replace spaces with tabs using Eclipse

I downloaded some code from the Internet, and the four-space indentation is bugging the crap out of me. I tried …

eclipse indentation
Indent/format code in Visual Studio code on MAC

i'm trying to indent my code in visual studio code. I searched and i found that ctrl + F + K should …

macos indentation auto-indent visual-studio-code
How to indent XML files automatically when opened in Sublime Text 2?

I'm using Sublime Text 2 (with the Indent XML plugin) for editing XML files. My question is: How can I configure …

xml sublimetext2 indentation