tagged [indentation]

Set 4 Space Indent in Emacs in Text Mode

Set 4 Space Indent in Emacs in Text Mode I've been unsuccessful in getting Emacs to switch from 8 space tabs to 4 space tabs when pressing the in buffers with the major mode `text-mode`. I've added th...

6 Jun at 05:32

Disable Visual Studio 2015 comment alignment?

Disable Visual Studio 2015 comment alignment? In Visual Studio 2015, if you have code like this: selecting Edit -> Advanced -> Format Document results in formatting like this: where Visual Studio has ...

Keeping code structure with string literal that uses whitespace

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 have a multi-line string literal in my progr...

17 Sep at 20:31

Indent multiple lines of text

Indent multiple lines of text I need to indent multiple lines of text (in contrast to [this question for a single line of text](https://stackoverflow.com/questions/15529672/generating-an-indented-stri...

23 May at 11:44

Way to get VS 2008 to stop forcing indentation on namespaces?

Way to get VS 2008 to stop forcing indentation on namespaces? I've never really been a big fan of the way most editors handle namespaces. They always force you to add an extra level of indentation. Fo...

How can I set Resharper to indent wrapped lines by exactly one tab?

How can I set Resharper to indent wrapped lines by exactly one tab? How can I set Resharper to indent wrapped C# lines by exactly one tab for lines that wrap around (except the first line of course)? ...

23 May at 12:8

Namespace indentation in Visual Studio with C#

Namespace indentation in Visual Studio with C# Visual Studio indents code within namespace. This can be avoided when disabling indentation globally, which is not what I want. In all other cases, the i...

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

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 and all I want to do is ou...

22 Jun at 15:58

How can I spot subtle Lisp syntax mistakes?

How can I spot subtle Lisp syntax mistakes? I'm a newbie playing around with Lisp (actually, Emacs Lisp). It's a lot of fun, except when I seem to run into the same syntax mistakes again and again. Fo...

22 May at 15:27

Python: "Indentation Error: unindent does not match any outer indentation level"

Python: "Indentation Error: unindent does not match any outer indentation level" I just can't figure out what's wrong with this... ``` #!/usr/bin/env python # # Bugs.py # from __future__ import ...

10 Nov at 22:45