ReSharper 2025.1의 새로운 기능

ReSharper 2025.1 delivers initial support for .NET 10 and C# 14 preview features. This release also brings new inspections targeting common C# pitfalls, along with several quality-of-life enhancements. Performance has been significantly improved with an overhauled string interning system and rebuilt support for Razor tag helpers and Blazor components. Additionally, this release unveils dotMemory integration in Visual Studio and introduces the new Qodana team code quality plugin for enhanced CI/CD pipeline integration.

C# 지원

.NET 10 Preview 및 C# 14 지원

ReSharper 2025.1 delivers initial support for .NET 10 and C# 14 preview features.

바운딩되지 않은 제네릭 타입의 nameof

이전에 nameof를 사용할 때는 모든 타입 인수를 지정해야 해서 불필요하게 장황해지기도 했습니다. C# 14 allows nameof(List<>) without explicitly listing type arguments. ReSharper는 nameof 표현식에서 불필요한 제네릭 타입 인수를 탐지하고 이를 단순화하는 빠른 수정을 제공합니다.

일급 Span<T> 변환

C# 14 introduces new implicit conversions between ReadOnlySpan<T>, Span<T>, and T[], making span-based code more intuitive. ReSharper는 이제 이러한 변환 규칙을 완전히 지원하여 사용자가 효율적이고 현대적인 C# 코드를 작성할 수 있도록 도와줍니다.

단순 람다 매개변수의 한정자

C# 14에서는 ref, out, inscoped와 같은 매개변수 한정자를 명시적 매개변수 타입 없이 람다 표현식에서 사용할 수 있습니다. ReSharper는 불필요한 타입 사양을 제거하는 빠른 수정을 제공합니다.

Learn all about the improvements to C# language support in ReSharper and Rider on our blog.

In addition to introducing support for C#14 features, this release also brings several new inspections targeting common pitfalls and inefficiencies across different C# versions:

New context action to convert interpolation to concatenation

A new context action lets you convert string interpolation back to concatenation. While ReSharper has long supported converting string concatenation ("Id = " + someId) to interpolation ($"Id = {someId}") or string.Format("Id = {0}", someId), this update completes the cycle by allowing the reverse transformation, giving you more flexibility in structuring string expressions.

Redundant duplicated code

ReSharper now detects and highlights even more code duplication patterns appearing in conditional constructs like if and switch, and makes refactoring suggestions for cleaner, more maintainable code.

Possibly Mistaken Use of CancellationToken

ReSharper now detects cases where a method-level CancellationToken is mistakenly used instead of a local token. It offers a quick-fix to replace the incorrect token or merge multiple tokens using CancellationTokenSource.CreateLinkedTokenSource().

Use nameof to reference enum member name

Calling .ToString() on enum members can incur unnecessary runtime overhead. ReSharper now suggests replacing it with nameof(SomeEnum.Member), improving performance and clarity.

Tuple component name suggestions

ReSharper 2025.1 suggests explicit tuple component names instead of generic ItemN names, making your code more readable and self-documenting.

Inexact stream reads inspection

ReSharper now warns you when Stream.Read() and ReadAsync() methods are used without checking their return values, which can lead to incomplete data reads. It suggests replacing them with .ReadExactly() to ensure correctness.

Modification warning in the Debug.Assert inspection

Since Debug.Assert calls are removed in RELEASE builds, ReSharper warns you about assertions that modify state and could lead to unexpected behavior in production code.

C++ 지원

ReSharper 2025.1에서는 C++ 지원이 다양하게 개선되었습니다.

  • The Inline Macro refactoring introduced.
  • 여러 새로운 GNU 언어 확장 지원.
  • 대량의 블루프린트 애셋이 포함된 Unreal Engine 프로젝트에서 메모리 사용 최적화.
  • Clang-Tidy 20 번들 및 ARM 기기에서 Clang-Tidy 사용 지원.
  • GoogleTest 지원 업데이트.

Learn more about the C++ updates from the What's New in ReSharper C++ 2025.1 page.

코드 리팩터링

Toggle <ImplicitUsings> refactoring

Implicit usings automatically include common namespaces, reducing boilerplate. ReSharper now provides an easy way to toggle implicit usings on or off across your project, removing redundant explicit usings when enabled or adding necessary ones when disabled.

Reworked Transform Parameters refactoring

ReSharper has modernized the Transform Parameters refactoring, adding support for value tuples, records, and async scenarios to improve code flexibility and maintainability.

코드 서식 지정

Chop formatting context action

A new formatting action applies chop formatting to various C# constructs, improving code readability and consistency.

기타 개선 사항

  • Comment formatting now ensures proper wrapping and the addition of spaces after //. You can find some helpful screenshots inside these tickets: [RSRP-225809], [RSRP-78312].
  • We've also added an option not to insert a line break before a single lambda expression argument in method invocations. [RSRP-467905]

사용자 경험

Push-to-Hint activation and indicator improvements

We've refined Push-to-Hint behavior in ReSharper to prevent unintended activations caused by conflicts with other Ctrl-based shortcuts. Additionally, we've introduced a visual indicator to show when the mode is active.

Context highlighters for extended types list

ReSharper now visually highlights members that extend base classes or implement specific interfaces when you place the caret over a type name in the base types clause.

성능

Memory consumption

For this release, we've completely overhauled our string interning system. IDEs process an enormous number of strings, including source code, syntax elements, symbol names, and file paths, so efficient string handling is critical. Our new string interning system stores, on average, four times as many unique strings as its previous iteration and consumes about half as much memory to do so, freeing up resources in large-scale .NET projects.

Blazor 및 Razor 개선 사항

Razor 태그 헬퍼 및 Blazor 구성 요소 지원이 2025.1에서 완전히 새로워졌습니다. 오랫동안 기다려온 이 개선으로 구성 요소 사용이 많은 대규모 ASP.NET 솔루션에서 분석 시간이 5~10% 단축됩니다. 또한 .cshtml/.razor 파일을 편집할 때 재분석 이벤트가 줄어들고 잘못된 오류 보고가 크게 감소합니다.

The latest status update on out-of-process ReSharper

We've been testing the latest out-of-process (OOP) implementation of ReSharper internally for the past four weeks, and we're truly excited about the results so far. While we're still working to support all features and fix known issues, the core functionality that makes ReSharper an essential part of your development workflow is coming together nicely.

Read our latest blog post for a complete status update on OOP ReSharper.

Memory profiling dotUltimate

Visual Studio에서 dotMemory를 사용한 스냅샷 분석

dotMemory가 이제 Microsoft Visual Studio와 완전히 통합되었습니다. 이전에는 Visual Studio 내에서 프로파일링을 트리거할 수 있었지만 결과를 분석하려면 독립 실행형 dotMemory 애플리케이션으로 전환해야 했습니다. 이제 IDE를 떠나지 않고도 애플리케이션을 프로파일링하고 메모리 스냅샷을 분석할 수 있습니다.

코드 품질 향상 기능 제공

The Qodana Team Code quality extension

Qodana is a team code quality tool that leverages JetBrains inspections to help teams run checks and audits and establish quality gates in their favorite CI/CD pipeline. Now, you can download the Qodana Code quality extension via your ReSharper installer to bring Qodana Cloud or self-hosted Qodana projects into Visual Studio.

Identify code issues, bugs, and vulnerabilities, run the analyses directly in your pipeline, and then view issues in your IDE where you work for better contextual updates and learning. You also have the option to download it as a standalone tool using the ReSharper installer.

게임 개발

ReSharper용 Unity 플러그인

ReSharper 2025.1은 주요 게임 개발 워크플로를 모두 지원하는 Unity 플러그인을 번들로 제공합니다. 이 플러그인은 Unity 이벤트 함수 및 API에 대한 코드 완성, Unity 문서로 연결되는 툴팁 요약, 일반적인 문제를 탐지하는 전문 검사를 제공합니다. ShaderLab 파일에 대한 구문 강조 표시, 코드 완성 및 오류 탐지 기능도 포함되어 있습니다. 이 플러그인은 또한 .meta 파일을 자동으로 처리하고 Unity 장면, 프리팹 및 애셋에서 필드와 메서드의 묵시적 사용을 탐지합니다.

ReSharper C++ continues to provide dedicated support for Unreal Engine development.

디컴파일러

ReSharper 2025.1 brings several improvements to the decompiler, enhancing support for the latest C# features and improving code readability. Here’s what’s new:

  • Support for required members.
  • Added support for the new System.Threading.Lock type introduced in C# 13.
  • Support for ref fields and scoped parameter modifiers.
  • Support for the allows ref struct generic anti-constraint.
  • Pattern-based using for ref struct types.
  • Support for string interpolation.
  • Certain integer constants in decompiled code now include commented hexadecimal representations for better readability.
  • Support for file-scoped namespaces.

기타 주요 개선 사항

New postfix template: .inject

C# 12's primary constructors have simplified dependency injection. The new .inject postfix template further streamlines constructor dependency injection by automatically introducing a parameter in the primary constructor and suggesting a meaningful name.

Structured logging support

ReSharper now provides enhanced structured logging support, helping developers write and analyze logs more efficiently.

Language injection in return values

ReSharper now allows language injection annotations on method return values, extending previous support for parameters, fields, and properties.

Improved multiline To-do comments

Previously, multiline To-do comments required indentation for continuation. ReSharper 2025.1 removes this restriction, making it easier to write and manage multiline to-dos while still enforcing indentation where provided.