Top "Indentation" questions

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

How do I unindent blocks of code in Python?

I am using Python 2.7.10 and am having trouble trying to unindent a block of code. Surely there is some sort …

python indentation python-idle
Text editor function to indent multiple lines at once

I want to make my code more organized. So, whenever I copy a function from my functions.php file and …

indentation text-editor textwrangler bbedit
How do I make xsl transformation indent the output?

I'm using xalan with the following xsl header: <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" …

xslt indentation xalan
Is there a quick way to decrease the indentation of multiple lines in Python?

I am a newbie to python programming. I find that decreasing the indentation of a block of codes in python …

python eclipse pydev edit indentation
Shortcut for changing tabs->spaces->tabs in IntelliJ IDEA

I know I can change indentation by: File > Settings > Editor > Code Style > ANY_LANGUAGE > Tabs …

intellij-idea keyboard-shortcuts indentation shortcut
How to get smart tabs ("indent with tabs, align with spaces") behavior in Xcode?

I used to use tabs for indentation and spaces for alignment. Like so (arrows show tabs and dots show spaces). …

xcode coding-style alignment indentation
How to properly indent PHP/HTML mixed code?

When mixing PHP and HTML, what is the proper indentation style to use? Do I indent so that the outputted …

php html indentation
Copy-paste into Python interactive interpreter and indentation

This piece of code, file test.py, if 1: print "foo" print "bar" can be successfully executed with execfile("test.py") …

python indentation copy-paste
In C#, how do I convert a XmlNode to string, with indentation? (Without looping)

This has got to be such a simple question but I just can't get the answer. I have an XmlNode …

c# xml string indentation xmlnode
ESLint "Unexpected tab character" when "indent" rule set to "tab"

I'm using ESLint with the Airbnb plugin (eslint-config-airbnb) and Babel parser. I've just added the extra rule of using Tab …

javascript indentation babeljs eslint airbnb