Archive for the ‘Programming’ Category
Resharper format settings
I can never remember these so thought it best to write them down. Start with the settings from:
Plus a few extras…
Go to menu Resharper –> Options –> Languages –> C# –> Formatting Style
- Braces Layout –> All set to (BSD style)
- Braces Layout –> Empty braces formatting = Together on the same line
- Blank lines – I don’t like a lot of blank lines so I set mostly to 1/0
-
Other –> Align Multiline Constructs – Call arguments = Off
-
Other –> Other – Indent array, object and collection initializer block = Off

Regions
Stop Resharper adding regions to interface implementations and nested classes:
Go to menu: Resharper –> Options –> Languages –> C# –> Type Members Layout
Un-tick Use Default Patterns and you get a text area full of xml. Scroll to the bottom and delete the section:
<Group>
<ImplementsInterface Immediate="true" Region="${ImplementsInterface} Members"/>
</Group>
Also delete the section:
<Group>
<Name Region="Nested type: ${Name}"/>
</Group>
Finally click Ok.
Code Cleanup
Go to menu Resharper –> Options –> Tools –> Code Cleanup
Add a new profile with the following settings:
I didn’t realise I had fiddled with the default settings so much no wonder I can never remember them.
TortoiseSVN + Global ignore pattern
build_log.xml *.suo *.user _ReSharper* *.resharper bin obj class build
Add a new project to Subversion server in Windows XP
NOTE: You must have TortoiseSVN installed for these instructions to work!
First create your Project folder structure:
ProjectName branches tags trunk
Place your source in the trunk folder.
In windows explorer right click on ProjectName folder and select TortiseSVN -> Import from the menu.
You will now see the import screen:

Enter the repository/ProjectName an import message and click OK.
You have now created the project in Subversion but you must still check out the source you just imported. This can be done via TortoiseSVN or directly in eclipse using the subclipse add in.
Installing subversion server on windows
We used subversion (or svn for short) server running on windows as our version control server as it integrates very nicely with eclipse.
We found a guide for installation:
Mere-Moments Guide to installing a Subversion server on Windows
But it turned out all we really needed was the subversion 1-click install:
Intergration with eclipse was easy too:
We also found a nice windows client for subversion:
Job done we’re good to go.