Automatic Formatting and Indentation Adjustment stopped working


 

my understanding that, within tools -> options, there's set of options specific formatting based on conditions, such "automatically format completed statement on ;". however, strange reason, ide seems ignoring of these settings.

 

for example, have boolean variable named somebool, , try type out following:

code snippet

if( somebool) {

//do something

}

 

 

 

the ide used format like:

code snippet

if (somebool)

{

//do something

}

 

 

 

all upon making closing brace, automatic formatting not happen anymore. yet options in formatting field under c# in tools -> options indicate should case. despite proper settings being in place, nothing gets formatted @ all. same problem persists should covered "automatically format completed statement on ;" , "adjust indentation on paste." checked settings in collapsed formatting field. none of them checked differently or in manner produce problem.

 

i puzzled how complete disregard settings occurred in first place, let alone how fix it. reinstalling visual c# nothing, nor does deleting settings located in c:\documents , settings\user account\my documents\visual studio 2005\settings\c# express. problem occurs no matter project i'm on, in addition new ones.

 

i'd appreciate on perplexing problem.

 

i have never come across such behaviour,  have resharper installed?

 

settings of resharper can override standard visual studio ones. if have installed @ resharper options.

 

i haev noted code doesn't auto format when there syntax errors. fixing syntax errors , deleting bracket typing again auto formats you.



Archived Forums V  >  Visual C# IDE



Comments

Popular posts from this blog

Azure DocumentDB Owner resource does not exist

BizTalk Server 2013 Azure VM Log Shipping and HA for hosts

How to Share webservice object to all user