just in ram

A list of stuff I should remember but never do

Archive for the ‘Programming’ Category

Resharper format settings

with one comment

I can never remember these so thought it best to write them down. Start with the settings from:

http://codebetter.com/blogs/aaron.jensen/archive/2008/10/19/getting-resharper-and-vs-to-play-nice-with-mspec.aspx

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 lineimage
  • Blank lines – I don’t like a lot of blank lines so I set mostly to 1/0image
  • Other –> Align Multiline Constructs – Call arguments = Off

  • Other –> Align Multiline Constructs – Expression = Offimage

  • Other –> Other – Indent array, object and collection initializer block = Offimage

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>

image

Also  delete the section:

<Group>
  <Name Region="Nested type: ${Name}"/>
</Group>

image

Finally click Ok.

Code Cleanup

Go to menu Resharper –> Options –> Tools –> Code Cleanup

Add a new profile with the following settings:

image

I didn’t realise I had fiddled with the default settings so much no wonder I can never remember them.

Written by Justin Ramel

June 10th, 2009 at 5:15 pm

Posted in Resharper

Tagged with

TortoiseSVN + Global ignore pattern

without comments

Tortoise
build_log.xml *.suo *.user _ReSharper* *.resharper bin obj class build

Written by Justin Ramel

October 10th, 2007 at 1:37 pm

Posted in General, Programming

Tagged with ,

Add a new project to Subversion server in Windows XP

without comments

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.

Written by Justin Ramel

February 22nd, 2006 at 12:12 pm

Posted in Programming

Installing subversion server on windows

without comments

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:

svn 1-clicksetup

Intergration with eclipse was easy too:

Subclipse

We also found a nice windows client for subversion:

tortoisesvn

Job done we’re good to go.

Written by Justin Ramel

February 21st, 2006 at 5:24 pm

Posted in Programming