Top "Indentation" questions

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

Sublime Text - JSON formatter shortcut

I'm using SublimeText2. How to reindent Json code with a shortcut? I've already installed packageControl and it works. I already …

json sublimetext2 indentation sublime-text-plugin
Python: using 4 spaces for indentation. Why?

While coding python I'm using only 2 spaces to indent, sure PEP-8 really recommend to have 4 spaces, but historically for me …

python indentation conventions pep8
Indentation in VS Code

I'm a long time Emacs user. I've been trying out VS Code and i like it so far. One thing …

visual-studio-code indentation vscode-settings
Automatic indentation for Python in Notepad++

I've been googling lots and this is getting really frustrating. It doesn't act like idle. Example: else: name = 'World' print …

python notepad++ indentation auto-indent
Indentation in Go: tabs or spaces?

Is there a standard Google Go coding conventions document somewhere that sets whether tabs or spaces are preferred for indentation …

go formatting coding-style indentation
Why does Python pep-8 strongly recommend spaces over tabs for indentation?

I see on Stack Overflow and PEP 8 that the recommendation is to use spaces only for indentation in Python programs. …

python indentation
How I can increase tab width in notepad++ (v6.5)?

This is example of two 4-space indentations http://i.imgur.com/B2BWYSw.png But indentation from notepad++ narrower with …

notepad++ indentation
How to indent multiple levels of select optgroup with CSS?

Just trying to indent optgroup blocks by nesting depth really, I've tried a general margin-left rule, nested elements then trying …

html css select indentation optgroup
Why is the "else" line giving an invalid syntax error?

I'm having this error: File "zzz.py", line 70 else: ^ SyntaxError: invalid syntax The line which causes the problem is marked …

python syntax-error indentation if-statement
SQL Statement indentation good practice

What is the accepted practice for indenting SQL statements? For example, consider the following SQL statement: SELECT column1, column2 FROM …

sql coding-style indentation