Upgrade to Pro — share decks privately, control downloads, hide ads and more …

The Way of the ReSharper Samurai

Jaime
April 19, 2013

The Way of the ReSharper Samurai

A presentation about improving you development productivity in .NET by using ReSharper (presented in Dev Friday at Medius)

Jaime

April 19, 2013
Tweet

More Decks by Jaime

Other Decks in Programming

Transcript

  1. View Slide

  2. (Japan 1500 AD)
    日本 年の広告

    View Slide

  3. Samurai in Medieval Japan
    Then War
    Then Miyamoto Musashi => Craftsmanship
    ReSharper

    View Slide

  4. Banshu, Japan 1584-1645
    Banshu, Japan 1584-1645

    View Slide

  5. “In the void is virtue, and no evil.
    Wisdom has existence, principle has
    existence, the Way has existence,
    spirit is nothingness.”

    View Slide

  6. View Slide

  7. “To know ten thousand things, know
    one well.”

    View Slide

  8. “Let go of the mouse.
    Master ReSharper and
    become a
    True Code Samurai”
    Miyamoto Musashi. 1645 AD

    View Slide

  9. シャープを再度!

    View Slide

  10. explore
    1. Shortcuts
    create
    improve
    2. Other stuff
    Unit testing

    View Slide

  11. https://github.com/Vintharas/TheWayOfTheReSharperSamurai

    View Slide

  12. vs2010 vs2012
    • Power Productivity Tools
    • CTRL+3
    • Access Anything within Visual Studio

    View Slide

  13. Use it to learn ReSharper!!!!

    View Slide

  14. ALT + ENTER
    Shows available quick-fixes
    and context actions
    The Magic Shortcut

    View Slide

  15. CTRL + SHIFT + R
    Refactor This!
    Refactor
    class method variable

    View Slide

  16. rename CTRL+R, R
    Refactor (CTRL+R)
    extract method CTRL+R, M
    introduce variable CTRL+R, M
    introduce field CTRL+R, F
    introduce parameter CTRL+R, P
    inline var, method, field CTRL+R, I
    change signature CTRL+R, S
    move type or static CTRL+R, O
    safe delete CTRL+R, D or ALT+DEL

    View Slide

  17. Go to next highlight ALT + Page Down
    Go to Stuff within the file
    Go to previous highlight ALT + Page Up
    Go to next error SHIFT + ALT + Page Down
    Go to previous error SHIFT + ALT + Page Up
    highlights are
    errors, warnings
    or suggestions

    View Slide

  18. CTRL + SHIFT +
    ALT + A
    Inspect This!
    Inspect
    Inspection Results Window CTRL+ALT+V
    class method variable

    View Slide

  19. Miscellaneous
    View type hierarchy CTRL+E, H Code clean-up CTRL+E, C

    View Slide

  20. Go To
    Go to type CTRL + T
    Go to file CTRL + SHIFT + T
    Go to symbol SHIFT + ALT + T
    Go to file member ALT + \

    View Slide

  21. Navigate To
    ALT + ´
    class method variable

    View Slide

  22. Navigate To
    Go to declaration F12
    Go to implementation CTRL+F12
    Go to type of symbol CTRL+SHIFT+F11
    Go to usage SHIFT + ALT + F12
    Go to base symbols ALT + Home
    Go to derived symbols ALT + End

    View Slide

  23. Find Usages
    Find usages SHIFT + F12
    Find usages (advanced) CTRL+SHIFT+ALT
    +F12
    Find results window CTRL+ALT+F12
    Analyze Ref. window CTRL+ALT+Y
    Highlight usages in file SHIFT+ALT+F11
    Go to previous usage CTRL+ALT+Page Up
    Go to next usage CTRL+ALT+PageDown

    View Slide

  24. Miscellaneous
    ToDo item Explorer CTRL+ALT+D
    Locate in Solution Explorer
    CTRL+ALT+L
    File Structure CTRL+ALT+F
    SHIFT+ALT+L

    View Slide

  25. Miscellaneous
    Stack trace explorer CTRL+E, CTRL+T
    Explore stack traces easily

    View Slide

  26. Generate Code
    ALT + INS
    (in the editor)

    View Slide

  27. Create File from Template
    ALT + INS
    (in the solution explorer)
    CTRL+ALT+INS
    (in the editor)

    View Slide

  28. Moving quick between files while editing
    Go to last edit location CTRL+SHIFT+DEL
    View recent files CTRL+,
    View recent edits CTRL+SHIFT+,
    Go to related files CTRL+ALT+F7

    View Slide

  29. Miscellaneous
    Move code around CTRL+SHIFT+ALT+[Arrows]
    Duplicate selection CTRL+D
    Extend selection CTRL+ALT+Right
    Shrink selection CTRL+ALT+Left

    View Slide

  30. Live Templates
    Just typing Insert Live Template Surround with Template
    CTRL+E, L CTRL+E, U

    View Slide

  31. Create your own Live
    Templates
    http://www.jetbrains.com/resharper/webhelp/Templates__Index.html

    View Slide

  32. Bookmarks
    Create bookmark CTRL+SHIFT+DEL
    Go to bookmark CTRL+,
    View bookmarks CTRL+`

    View Slide

  33. Code Completion
    Symbol code completion CTRL+SPACE
    Smart code completion CTRL+ALT+SPACE
    Import symbol completion SHIFT+ALT+SPACE
    Complete statement CTRL+SHIFT+ENTER Complete current statement
    and jump to the next line
    Filters list of methods, fields or variables
    to match expected type.
    Improved intellisense
    Symbol completion + import namespaces
    http://www.jetbrains.com/resharper/features/coding_assistance.html#Code_Completion

    View Slide

  34. Documentation & information
    Quick documentation CTRL+SHIFT+F1
    Parameter information CTRL+SHIFT+SPACE

    View Slide

  35. 余分な先端

    View Slide


  36. 1. Learn one new key every day
    2. Try to avoid the mouse
    3. Practice, practice, practice…

    View Slide

  37. https://github.com/Vintharas/TheWayOfTheReSharperSamurai

    View Slide

  38. View Slide

  39. http://osherove.com/blog/2007/6/3/train-to-be-a-keyboard-master-with-keyboard-jedi.html

    View Slide

  40. 一部のリソース

    View Slide

  41. View Slide

  42. View Slide

  43. http://www.jetbrains.com/resharper/demos/awesome/index.html
    Why ReSharper is Awesome?
    http://www.jetbrains.com/resharper/demos/
    Lots of ReSharper videos
    http://pluralsight.com/training/Courses/TableOfContents/resharperfundamentals
    ReSharper Fundamentals
    http://blogs.jetbrains.com/dotnet/2013/04/webinar-recording-jon-skeet-inspects-resharper/
    Jon Skeet inspects ReSharper
    http://tv.jetbrains.net/videocontent/when-hadi-met-julie
    When Hadi met Julie (Lerman)

    View Slide

  44. View Slide

  45. Jaime González García
    Software developer
    BarbarianMeetsCoding.Com
    [email protected]

    View Slide