Top "Indentation" questions

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

Keeping code structure with string literal that uses whitespace

So a bit of a weird question I was having trouble coming up with the search terms for. If I …

c# indentation string-literals
How do you enable file specific tab indent settings in VIM?

I believe there is a method to write a comment in a file that vim will use to override default …

vim configuration indentation auto-indent
Custom indent width for BeautifulSoup .prettify()

Is there any way to define custom indent width for .prettify() function? From what I can get from it's source …

python beautifulsoup indentation code-formatting pretty-print
How to indent the fluent interface pattern "correctly" with eclipse?

I just created a generator for some fluent interfaces. Now I have lots of code looking like this: new MyFluentInterface() .…

java eclipse indentation
notepad++ and nppautoindent

I have installed the nppautoindent plugin into the notepad++ editor. I see no autoindenting effect. I am using PHP. Can …

notepad++ indentation auto-indent
Is there a way to enforce using tabs instead of spaces?

StyleCop offers to check for consistent use of spaces, but sadly lacks the opposite idea: Force source code to use …

c# indentation stylecop
Indenting in VIM with all the files in Folder

I have a folder containing hundreds of TTL (TeraTermLanguage) files. Now I wanted indent all these files. I have created …

vim indentation
Shift a region or line in emacs

I'm looking for a way in emacs to shift text to the right or to the left by n spaces. …

emacs indentation text-manipulation
Only two spaces of indentation in JavaScript in RubyMine?

Is there a way to configure RubyMine 3.1 to only use two spaces to indent JavaScript?

javascript indentation rubymine
Can a line of Python code know its indentation nesting level?

From something like this: print(get_indentation_level()) print(get_indentation_level()) print(get_indentation_level()) I would like to …

python reflection metaprogramming indentation tokenize