Top "Indentation" questions

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

IndentationError: unindent does not match any outer indentation level

When I compile the Python code below, I get IndentationError: unindent does not match any outer indentation level import sys …

python indentation
How do you auto format code in Visual Studio?

I know Visual Studio can auto format to make my methods and loops indented properly, but I cannot find the …

visual-studio indentation
How do I reformat HTML code using Sublime Text 2?

I've got some poorly-formatted HTML code that I'd like to reformat. Is there a command that will automatically reformat HTML …

html sublimetext2 sublimetext indentation reformat
Tab key == 4 spaces and auto-indent after curly braces in Vim

How do I make vi-Vim never use tabs (converting spaces to tabs, bad!), makes the tab key == 4 spaces, and automatically …

vim whitespace indentation vi auto-indent
Indent multiple lines quickly in vi

It should be trivial, and it might even be in the help, but I can't figure out how to navigate …

vim editor indentation vi
What to do with "Unexpected indent" in python?

How do I rectify the error "unexpected indent" in python?

python indentation
Convert tabs to spaces in Notepad++

How do I convert tabs to spaces in Notepad++? I found a webpage that suggests it's possible, but I couldn't …

notepad++ whitespace indentation
Auto-indent in Notepad++

We always write code like this formal: void main(){ if(){ if() } But when I use Notepad++, the display is: void …

notepad++ indentation code-formatting
JavaScript error (Uncaught SyntaxError: Unexpected end of input)

I have some JavaScript code that works in FireFox but not in Chrome or IE. In the Chrome JS Console …

javascript jquery syntax syntax-error indentation
Turning off auto indent when pasting text into vim

I am making the effort to learn Vim. When I paste code into my document from the clipboard, I get …

vim configuration editor indentation auto-indent