Top "Indentation" questions

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

indent python file (with pydev) in eclipse

I'm a newbie in eclipse. I want to indent all the lines of my code and formatting the open file …

python eclipse pydev code-formatting indentation
Notepad++: disable auto-indent after empty lines

I find the autoindent style of Notepad++ a little weird: when I am typing on an indented line, I do …

notepad++ indentation auto-indent
2 Spaces or 1 Tab, what's the standard for indentation in the Rails Community?

I've noticed that most of the HTML/XML/HAML that gets generated from plugins uses 2 spaces instead of 1 tab. I …

html ruby-on-rails xml indentation haml
Disable all auto indentation in vim

In TeX vim usually screws up my indentation. Mainly when I'm in a displayed equation which I think should look …

vim indentation file-type
editing the NetBeans source formatting standard

Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? …

php netbeans code-formatting indentation auto-indent
How to write an empty indentation block in Python?

The runtime keeps telling me: expected an indented block But I don't want write nothing inside my except block, I …

python syntax try-catch indentation
Indenting #defines

I know that #defines, etc. are normally never indented. Why? I'm working in some code at the moment which has …

c coding-style indentation c-preprocessor code-formatting
Smart auto-indentation available in geany?

I'm writing javascript using Geany IDE. My indentation is all messed up and I'd like to make it look nice. …

java ubuntu ide indentation geany
Adobe brackets: write spaces instead of tabs

I am using brackets with coffeescript, but when I hit Tab, it insert a tabulation whereas i only need 2 spaces. …

indentation adobe-brackets
How to implement custom indentation when pretty-printing with the JSON module?

So I'm using Python 2.7, using the json module to encode the following data structure: 'layer1': { 'layer2': { 'layer3_1': [ …

python json indentation