ReSharper 2019.3

添加新的本地化管理器、类型名称提示,并改进了对 C# 8 的支持。
12月 11, 2019
新版本

特性

  • Localization Manager - The brand new Localization Manager helps you work more efficiently with .resx files in your solution. It shows everything you have in your .resx files in a single grid, so you can observe the current state of the application or website localization and quickly find any missing resource values in any culture.
  • Even Better C# 8 support - The new ReSharper release handles C# 8 even better. It now includes:
    • A better understanding of Nullable Reference types including support for notnull constraints.
    • Target-typed switch expressions.
    • Early support for default interface methods.
    • A new hint, “Local function can be static”, with an accompanying quick-fix.
    • A new quick-fix to enable nullable annotations and warnings in a file, project, or all projects in a solution.
    • A new quick-fix to add the EnumeratorCancellation attribute to CancellationToken parameters of async iterators.
  • Code Generation - The Generate action knows more about C# 8 and helps you learn, too, with:
    • A new quick-fix Add missing arms to check enum values exhaustively.
    • A new quick-fix and context action to generate type patterns in switch expressions.
    • Nullability being taken into account when generating equality/relational members/comparers.
  • Code Style - C# naming settings now support reading from/exporting to EditorConfig. In addition, there are several smaller changes that give you more control over the style of your code:
    • For those who prefer to use var instead of explicit types only when the type of initializer expression is evident/apparent, ReSharper can now detect more “evident” cases. There is also a “compatibility” mode to match the Roslyn behavior.
    • There is a new code style option, which is compatible with StyleCop and Roslyn, to add parentheses that clarify precedence only for a group of operators nested with others from the same group. For example, if you can’t remember whether && or || takes precedence, this option will help you to clarify it with parenthesis.
    • Comment Code now adds an indent to a comment by default. There’s a new setting to “Place comments at first column when commenting out code” if you want to turn it off.
    • The options pages to set up indentations now display the appropriate notification when the Autodetect indent size and value setting is ON.
    • There is also a notification tooltip explaining the Configure formatting and Autodetect formatting features on the C# formatter options pages.
  • Cross-platform ReSharper Command Line Tools - ReSharper Command Line Tools have come to Linux and macOS.
  • Type Name Hints - They are available for:
    • A lambda’s parameters.
    • All var occurrences, including pattern matching and tuples deconstruction.
    • Range variables inside LINQ statements.
    • At the end of a line in a method call chain.
  • Navigation and Find Usages
    • Find dependent code now works for NuGet references and can be run for a whole solution instead of just a project!
    • Consuming APIs extends “Navigate to” actions and might be helpful if you want to list all methods that receive objects of a specific type in their parameters.
    • The Find results window for Find dependent code has new filters.
    • You can now navigate to the external sources of NuGet packages that have a source symbols package.
  • Unit Testing update
    • Use the new advanced Group by functionality in the Unit Test Explorer and Unit Test Session tool windows to create a custom grouping. With the added Duration element, you can now group unit tests based on the time it takes them to execute.
    • You can filter unit tests by the target framework in the Unit Test Session tool window, in the event that you have more than one (which is quite common nowadays) and don’t want to see some of them.
  • Identifier highlighting update-  Identifier highlighting has been completely reworked. This release adds more color settings for extra precision with code highlighting. New color settings include:
    • A general section for colors of entities in all languages.
    • Dedicated settings for C# colors.
    • New color settings for constructs in different languages.
  • Other features
    • New NUnit inspections cover combinatorial unit tests and individual parameters of parameterized unit tests.
    • The Parameter Info popup is available for tuples.
    • Xamarin support has a couple of important fixes, such as x:DataType and Class attribute support.
    • Typing assists for deleting new lines and for backspacing before a new line now leave a space either to separate tokens or when this is required by the formatting rules.
Better C# 8 support

ReSharper

提高您的 .NET 工作效率。

有任何疑问吗?

透过Live Chat与我们的JetBrains 专家联络!