Re: Format C# Braces in IDE?
- From: "Derrick Coetzee [MSFT]" <dcoetzee@xxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 12 Aug 2005 14:59:44 -0700
clintonG wrote:
> Visual Studio 2005 has lost settings for C# braces and I can't figure
> out how to restore as indicated...
>
> Page_PreInit
> { // inline as indicated
> // indented
> } // inline as indicated
Tools->Options, select Text Editor->C#->Formatting in tree pane. There are
several suboptions under Formatting that affect how C# code is formatted.
For your example, you would need to:
1. Check all options under New Lines->New line options for braces.
2. Check "Indent block contents" under Indentation and uncheck "Indent open
and close braces".
If these are set correctly, it's possible that your code contains a
syntactic error that is confusing the formatter. Verify that it compiles
correctly, and that nothing appears to be highlighted with the wrong color.
Please write back if this doesn't solve your problem.
--
Derrick Coetzee, MCP, MSFT (Speech Server)
This posting is provided "AS IS" with no warranties, and confers no
rights.
.
- References:
- Format C# Braces in IDE?
- From: clintonG
- Format C# Braces in IDE?
- Prev by Date: Re: dynamic DLL loading
- Next by Date: Item and indexers
- Previous by thread: Format C# Braces in IDE?
- Next by thread: Variable name as object name?
- Index(es):
Relevant Pages
|