autoformatting

Auto formatting a web.config in Visual Studio 2008

I am currently in the process of creating API documentation using Microsoft Word 2007 and I need the user to cut and paste a section from the document into their web.config. I formatted the section in the Microsoft Word document for easy readability and when I paste the formatted section into the web.config it maintains the style from t...

Visual Studio Auto-Format Broken

I'm running Visual Studio 2008 sp1 on Windows 7 Build 7100 32bit. I've never had this problem before, even on different installs of Windows 7 RC. when I finish a statement with a ';' or '}' or something, normally VS will auto format that line or block of code. It hasn't been for me. I checked Tools->Options->Text Editor->C#->Formattin...

Visual Studio/C# auto-format. Can I control newline after attributes

Visual studio keeps doing this: [DataContract] public class MyContract { [DataMember] public bool MyBool { get; set; } [DataMember] public string MyString { get; set; } } I would like this: [DataContract] public class MyContract { [DataMember] public bool MyBool { get; set; } [DataMember] public string My...

If it is possible to auto-format code before and after a source control commit, checkout, diff, etc. does a company really need a standard code style?

If it is possible to auto-format code before and after a source control commit, checkout, diff, etc. does a company really need a standard code style? It feels like standard coding style debates that have been raging since programming began like "put the bracket on the following line" or "properly indent your (" are no longer essential....

Custom format document option in visual studio. Formatting CSS tags.

Hi, When i work in VS2008, i use the Ctrl+K+D very often as it saves a lot of time. But in CSS files, this command formats the document in a way i don't quite like. For example when i auto format the document, .Foo { width:1px; height:2px; } However, i like to format tags this way, as it is much more easy to read (in my opinion):...

Autoformat js file in VS2005

Hi How do I autoformat my js files in VS2005 Doesnt seem like this version support js autoformat out of the box. so any plugins or other tips? ...

Disable auto-indent certain items in Visual Studio 2005?

I don't mind most of the way that VS2005 auto-indents (or auto-formats) my C++ code, but certain items I don't want it to automatically indent. Like #define statements for example. It takes them and shoves them all the way to the left side of the screen, no matter how deep into my scope I type them. That's really really annoying. Is the...

Eclipse JDT Formatter lineSplit: auto-wrapping of string literals

Can I automatically reformat Java code in Eclipse so that no lines exceed 80 characters in length, with string literals being split and concatenated using "+"? Example: String s = "very long "| <- imagine this column to be the 80 chars margin + "string"; | All wrapping seems to work but string splitting... Thanks! This i...

Eclipse does not format this if statement correctly

This should be easy to answer: I have Eclipse set to wrap Java code over 80 chars to respect my margin. This code never wraps: if (expressionItem.type.isTypeCompatibleWith(containingNameLink.type) == false) { reportParsingError("expression type incompatible with containing " + "context."); } Question: how do ...

tool to auto-format R code

Is there any tool (editor, script, whatever...) available that can automatically reformat R code? It does not need to be customizable but it must be able to recognize statements separated by either semicolons or newlines since this code has both. If it can put all statements on a separate line, consistently indent code blocks and consist...

Dreamweaver CS5 Auto-Format source code like in VS2010 CTRL+K, CTRL+D?

Does Dreamweaver CS5 support auto-formatting feature similar to Visual Studio 2010 CTRL+K, CTRL+D? Thanks! ...

How can I automatically tidy up Perl source code?

A cat at my company walked over a keyboard and has left a valid 1000+ line of executable Perl code for me to maintain. Thanks to Perl's TMTOWTDI philosophy I find myself searching Google to make sense of every line of code she has produced. To add to my misery the code is not indented and one find frequent occurrence of the two stateme...