ReSharper 2018.1

Released: Apr 19, 2018

2018.1 での更新項目

機能

  • Full understanding of C# 7.2 - ReSharper gets the following missing pieces to complete the puzzle:
    • non-trailing named arguments
    • private protected access modifier
    • leading underscores in numeric literals
    • in parameter
    • ref readonly returns and locals
    • readonly struct type
    • ref struct type
    • conditional ref operator
  • Navigation improvements
    • Go to File Member has a new grouping for better presentation of more than one class in a single file, and members are now sorted as they are declared in the file.
    • When searching in Recent Files, file search results are now included and displayed right after matching recent items.
    • Search Everywhere has a new unit test filter to focus on code entities from unit test projects if that's what you're looking for.
    • When you invoke Find Usages on a class, you can now choose to restrict search results to default constructor usages if no constructors are defined in the class.
  • Formatter-related inspections - Every now and then, you want to be notified directly in the code when you are not following formatting rules. With this in mind, ReSharper's code formatting engine introduces inspections and quick-fixes for formatter-related problems: indenting, line breaks, spaces, and blank lines can now be observed and fixed directly in the code editor.
  • Enhanced C# 7 support - Added new code styles, code inspections, quick-fixes and context actions to choose between deconstructing declarations vs. var, as well as work with explicit and implicit discards.
  • More ways to configure code styles and inspection severity - In this release, ReSharper reads code style settings (ReSharper | Code Editing | C# | Code Style) from .editorconfig files and extends support for Roslyn language conventions.
  • StyleCop support - In the same way that ReSharper handles Roslyn coding conventions, it will also read StyleCop rules directly from StyleCop configuration files.
  • C# 7 features come to value tracking - Even if you are using ref-returning methods, pattern matching or out variables, Value Origin/Destination is now ready to help you track the value of a particular variable.
  • Comments - ReSharper brings in a couple of new features to deal with comments in your code.
    • Comment position used by the Comment code action now depends on the “Don't indent comments” setting starting on the first column.
    • Previously, pressing Enter inside a line comment left the code in an uncompilable state. From now on, pressing the Enter key there splits a single comment into two comments. This enables you to split a comment into any number of comments quickly.
  • More ReSharper updates - Other updates to ReSharper include the following:
    • Pre-/Post-build tasks support in the ReSharper Build engine.
    • New settings for parentheses in method calls/declarations, line breaks, and wrapping LINQ expressions.
    • A new inspection for possibly unintended linear search in ISet.
    • The option Remember last search in navigation features is now enabled by default. State of the option Include library types is also saved.