Giter VIP home page Giter VIP logo

resharperhelpers's Introduction

ReSharper Helpers

Plugin to extend R# functionality by set of custom actions.

ReSharper Gallery Build status

Features:

Copy full class name

Quick action to copy full class/interface name (including assembly name) to clipboard.

Cleanup modified file

Extend solution, project and directory context menu with additional action to perform cleanup on modified files only. Action uses git to get list of the modified files. All the dirty files (indexed and non-indexed) are included. If you select project or directory (or multiple ones simultaneously), list of files to cleanup is limited to the appropriate scope.

Suppress warnings for project

Now you can use [assembly: SuppressMessage("ReSharper", "id")] attribute to suppress inspection warnings on project level. It might be useful for the test projects where not all inspections are relevant.

Note, you might need to reload solution and re-analyze files to apply changes.

Assert parameter is not null/Assert all

Quick action for method argument to insert assertion statement. Allows to assert all nullable argument using Assert all action. If annotation attributes are available and relevalt for argument, they are arranged.

[Pure] annotation

Quick actions to add/remove Pure annotation attribute.

Chop/one line method arguments

Quick actions to chop method arguments or make them one line (remove all line breaks). Useful to format method signatures with large number of parameters (e.g. in tests).

AutoFixture: [Freeze, Greedy] quick actions

Quick actions to add/remove [Frozen] or [Greedy] attributes for AutoFixture xunit integration. Allows to specify match criteria for the [Frozen(Matching.XXX)] attribute.

Create test file/Go to test file

Quick action to go to corresponding test file or create it. Usually, test project name is detected automatically, but could be configured in plugin settings (in R# options dialog).

To specify individual test project for your projects, specify [assembly: AssemblyMetadata("ReSharperHelpers.TestProject", "TEST_PROJECT_NAME")] attribute. Define attribute conditionaly (e.g. #if DEBUG .... #endif) if you want to omit attributes in release assembly. Note, if condition is not satisfied, attribute might be not detected by plugin.

Navigate to next/prev section in bulb menu

When bulb menu is opened (e.g. after you press Alt+Enter), you can use Ctrl + Up/Down to navigate to next section. Useful if quick actions menu becomes really large.
If section is very large, it jumps to the middle of the section before jumping to the next/previous one. Preview

"Launch solution" build configuration

Custom R# Build Configuration that builds solution and runs it. The difference comparing to the "VS Startup" (default) configuration is that the default one builds the startup project (with all dependencies) rather than a solution. If you have projects which you want to be always built, they might be skipped if your startup project doesn't depend on them.

This configuration might be useful when you develop a custom plugin that depends on the startup project. You might want the plugin to be always built and copied to the startup project output directory. In this scenario you can:

  1. Mark the plugin project as "Build always".
  2. Create and activate the "Launch Solution" build configuration in the Build & Run window.

Pre-release builds

Pre-release builds (develop branch) are published to custom nuget feed. If you want to use pre-release builds, add the following extension source to ReSharper: https://www.myget.org/F/alexpovar-resharperhelpers-prerelease/api/v2.

resharperhelpers's People

Contributors

zvirja avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.