auto-indent

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 indent code after curly brace blocks like emacs does? Also, how do I save these settings so I never have to input them again. I've seen other questions related to this but it always seems to be a little off from what ...

What setting in vim counteracts smartindent's refusal to indent # comments in shell scripts?

I recently started using vim 7 (previously vim 6) and the smartindent setting. For the most part, it works well, though I'm so used to typing a tab after an open brace that it is almost counter-productive. However, there is one piece of maniacal behaviour. When editing a shell script, I try to create a comment at the current indent le...

Visual Studio 2005 : Is there an easy way to indent correctly in an ASPX file?

In Visual Studio 2005, is there a way to indent correctly the tags in the aspx file (not in .cs files but really in ASPX files which contain HTML/ASP code)? ...

Auto Indentation Off

Hi All, In Visual Studio, when I press Enter, it automatically indents my text, and I don't like that. Is there a way to turn that 'feature' off? Thank you :) Bael. ...

Turning off auto indent when pasting text into vim

Unfortunately, I am not an experienced vim user. But, I am making the effort to learn it. When I paste code into my document from the clipboard, I get extra spaces at the start of each new line: line line line I know you can turn off auto indent but mine doesn't seem to work because I have some other settings conflicting or so...

How to avoid namespace content indentation in vim?

How to set vim to not indent namespace content in C++? namespace < identifier > { < statement_list > // Unwanted indentation } Surprisingly, 'cinoptions' doesn't provide a way to edit namespace content indentation. ...

Xcode Disable Colon-aligning Auto-indent

Is there any way to disable the auto-indent Xcode performs to align colons when breaking up a long method name into multiple lines? That is, I'd rather not have this: UIBarButtonItem *longDescriptiveButton = [[UIBarButtonItem alloc] initWithTitle:@"Title of Button" ...

editing the NetBeans source formatting standard

Is there any way of changing the standard by which NetBeans automatically formats the code when doing "Source->Format"? I seem to remember seeing this option somewhere, but I can't find anything about it. ...

How to fix broken automatic indentation in vim

Hi, I am trying to use vim 7.2 (on Windows XP) to automatically indent and format some VHDL and Matlab code. To do so I am trying to use the "gg=G" command. However this does not work properly. The code is not properly indented at all. To give you an example, I had the following source code, which was already properly indented: % This...

Using emacs extension in Visual Studio 2010, disables auto indent

Hi, I recently installed Visual Studio 2010 for my c++ course at school. Im very used using emacs scheme in netbeans and eclipse, its hard wired into my brain, the hotkeys. At my frustration, after installing the emacs scheme (the extension) for visual studio 2010, and also enable the keymap via tools -> options -> keyboard, the auto i...

Auto-Indentation On Close Block in Visual Studio 2008

I recently upgraded to Visual Studio 2008 Professional, and it is not auto-indenting blocks of code when the block is closed }. This was a feature I found very useful with Express. How do I turn it back on? Thanks. ...