VS2008: Format setting for TextEditor will not be applied!

S

schaf

Hi NG!
I have a strange behavior. I'm working with VS2008 and I set all the
TextEditor settings for my intended format style used in C#. While
checking the checkboxes the preview displays the format, but the
VS2008 does not apply all these settings to any C# file.

I restored the default settings, but that did not help.

Can you help me?
Thanks
Marcel
 
M

Morten Wennevik [C# MVP]

Hi Marcel,

If I understand correctly you have changed the Plain Text font in
Options-Fonts and Colors and do not see the change TextEditor when you apply
the change?

Do you use any third party extensions like ReSharper which may interfere?
 
S

schaf

Hi Morten!
No I changed the settings for formatting the TextEditor like ' New
line options for keywords: Place "else" on new line'.
No I do not use any third party extensions.

Thanks
Marcel

Hi Marcel,

If I understand correctly you have changed the Plain Text font in
Options-Fonts and Colors and do not see the change TextEditor when you apply
the change?

Do you use any third party extensions like ReSharper which may interfere?

--
Happy Coding!
Morten Wennevik [C# MVP]

schaf said:
Hi NG!
I have a strange behavior. I'm working with VS2008 and I set all the
TextEditor settings for my intended format style used in C#. While
checking the checkboxes the preview displays the format, but the
VS2008 does not apply all these settings to any C# file.
I restored the default settings, but that did not help.
Can you help me?
Thanks
Marcel
 
J

Jeff Johnson

No I changed the settings for formatting the TextEditor like ' New
line options for keywords: Place "else" on new line'.
No I do not use any third party extensions.

Were you expecting these rules to be applied automatically to any file you
open? Because they will only take effect if A) you are currently editing a
line of code (new or existing) and you type a "trigger" character, like " ;
" or " } ", or B) you use Edit | Advanced | Format (Document | Selection).
 
S

schaf

Yes i know, but it does not work even if I enter an new line including
a trigger character.
 
J

Jeff Johnson

Yes i know, but it does not work even if I enter an new line including
a trigger character.

Well, I'm sure if it were completely broken for everyone we'd know about it
by now, so clearly there's something wrong with your setup. The standard
path for trying to fix this kind of thing goes like this (least to most
destructive/time-consuming):

1) Disable all third-party add-ins and restart VS

2) Reset your settings (export your current settings first!)

3) Re-service pack

4) Last resort: reinstall VS

5) The Real Last Resort (TM): Wipe hard drive and reinstall Windows.
 
S

schaf

Hi Jeff!
Thanks for your hints. Points 1 and 2 did not work, so I checked once
again the internet.
With Ctrl+K,Ctrl+D it works, but not after entering a "trigger'
character

Cheers
marcel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top