Top "Indentation" questions

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

Python's interpretation of tabs and spaces to indent

I decided, that I learn a bit of Python. The first introduction says that it uses indentation to group statements. …

python tabs indentation spaces
Showing trailing spaces in vim

I've set the following options in .vimrc set listchars=tab:▸\ ,trail:· set list And expected to see dots in those …

vim indentation
Android Studio "This file is indented with tabs instead of 4 spaces"

I keep getting a message popping up in Android Studio whenever I edit a file. It says, "This file is …

android-studio indentation
How to reindent lines in IntelliJ IDEA / WebStorm?

In Eclipse, I can select a few lines and press Ctrl + I to reindent those lines. How do I do …

intellij-idea indentation
I'm getting an IndentationError. How do I fix it?

I have a Python script: if True: if False: print('foo') print('bar') However, when I attempt to run my …

python exception error-handling indentation code-formatting
No indent for paragraphs after figures?

The default style for my document is that paragraphs are indented. That's fine. But I need no indentation for paragraphs …

latex indentation paragraph
Emacs C++-mode incorrect indentation?

I'm running emacs 23 with c++-mode and having some indentation problems. Suppose I have this code: void foo() { if (cond) { &…

c++ emacs indentation
Multi-line literals in swagger editor?

I am trying to get a multi-line literal in Swagger editor (awesome tool, by the way!). post: summary: Translate one …

yaml swagger indentation swagger-editor
Code-style for indention of multi-line 'if' statement?

When indenting long if conditions, you usually do something like this (actually, PyDev indents like that): if (collResv.repeatability is …

python coding-style indentation code-readability
Changing indentation settings in the Spyder editor for Python

I am using the Spyder editor for Python. I need to change the indentation setting (e.g., let "tab" mean "4 …

python indentation spyder