Resharper Snippets for Calculator Kata

So after reviewing a few peoples code I thought I’d upload a video on how to create resharper snippets, and in particular the ones I use for the calculator kata. It’s my first video so be kind, this is about the 4th take.

I may well have missed some bits out so just make a comment below and I’ll be sure to make a note of it in the blog.

So here it is:

Sara ;)

Filed under: Technical, , ,

10 Responses

  1. Andrew Rimmer Says:

    Cool video. It is good to see how different people are approaching the Kata, and how they are using their tools to get quicker.

    I still need to get to grips with all the resharper and VS shortcuts. I am *trying* to go mouseless.

    p.s. Hard coding any resharper templates with Calculator specific stuff in is cheating* ;)

    Posted on October 8th, 2009 at 00:02

  2. Rob The Geek Says:

    Nice first vid.

    Just tweeted this – but you have inspired me to use R# templates more. I use normal VS snippets ATM (started creating library before I had R#) and it's a pain having to drop out into a different tool.. R# Live Templates look real quick to setup..

    Agree with Andrew RE the calc-specifics (this is why I assume the setup template was in debate?)..

    Keen to check out some of the TDD katas – there has obviously been a lot of buzz since Roy did the course – how have you found them personally? Useful?

    Glad to see you are enjoying and getting into TDD – it's a journey I'm enjoying also!

    Posted on October 8th, 2009 at 00:22

  3. Developer Dame Says:

    @Andrew cheating moi?! Never :P Maybe I should make them changeable values instead? Mouseless is definately the way forward although I'm finding I have to actually hide my mouse from myself at work, them becomes a pain when I have to dig it out and create the templates! :)

    @Rob Glad you liked it! The debate was about the over use of the setup (shouldn't be done) I love the kata's they give me the feel good factor for some reason. Kata's become even more useful when I'm reviewing other peoples and seeing how they do them. Learning lots and hopeful imparting my knowledge along the way

    Posted on October 8th, 2009 at 01:00

  4. Svish Says:

    How do you jump between source-files without the mouse? One that isn't open already that is. One that I currently have to find in the solution explorer and open from there with my mouse.

    Posted on October 8th, 2009 at 17:54

  5. Svish Says:

    Also, just something I found out with ReSharper: I would swap out that $test$ thing in your test template with $END$ =)

    Posted on October 8th, 2009 at 18:12

  6. Developer Dame Says:

    Thanks Svish, I would use crtl + shift + N and then type in the file your want. The switching I did was bewteen files that were already open. Does this help?

    Posted on October 8th, 2009 at 20:18

  7. Svish Says:

    Hm, Ctrl+Shift+N seems to open the new project dialog… do you have a very modified set of shortcuts?

    To clarify, I meant how do you jump between files in your solution that you do not have open in your IDE. Like, the ones that are open I can jump between using Ctrl+Tab.

    To ask it in a different way: I can see all my files in the solution explorer (although some projects might be collapsed etc…). How do I open one of them when I cannot use the mouse to double click the file in the Solution Explorer?

    (Hope I make some sense here :P )

    Posted on October 13th, 2009 at 21:32

  8. Sara Says:

    Hi Svish,

    Standard resharper short cut Ctrl + Shft + N brings up a search box fro a new file Make sure you are set to the ReSharper 2.x/IDEA scheme. Do you know where to set this?


    Posted on October 15th, 2009 at 14:52

  9. Svish Says:

    Ooh. Well, I remember there was a setting when I installed ReSharper, but otherwise no.

    Posted on October 16th, 2009 at 19:29

  10. Svish Says:

    Found it! Ctrl+Alt+L seems to activate the Solution Explorer. And Ctrl+Tab brings you back. Also discovered that in the document switching dialog you get when pressing Ctrl+Shift+Tab, you can actually jump between tool windows as well (Active tool windows on the left, active files on the right, move around using arrow keys).

    You suppose you probably knew this already, but I found it kind of awesome since I didn’t. And since I had asked you about here, I figured I could supply the answer since I found it :p

    Posted on December 14th, 2009 at 14:04

Leave a Reply