Novidades no ReSharper 2024.3

ReSharper 2024.3 introduces comprehensive support for C# 13 features, including params collections, partial properties, a new lock type, and the field keyword. The update enhances code cleanup with improved performance and flexible formatting options and adds more precise naming conventions. Multiline To-do comments and tooltip colorization improve code readability and organization. C++ support has been bolstered with new features for Unreal Engine development, alongside improvements to performance and Clang interoperability.

Baixar

Avaliação gratuita por 30 dias disponível

Suporte para C#

C# 13 updates

With its latest release, ReSharper introduces support for the latest features that come with C# 13, namely:

  • Novas coleções params: A palavra-chave params foi expandida para funcionar com diversos tipos de coleções, permitindo assinaturas mais eficientes de métodos, sem alocações adicionais.
  • Partial properties: Support has been added for partial properties, enabling you to spread property accessor implementations across multiple files, increasing flexibility and organization in your codebase.
  • Novo tipo de lock: Foi introduzido o novo tipo System.Threading.Lock, para uma sincronização mais eficiente das threads, melhorando o desempenho em relação à instrução lock tradicional.
  • Prioridade de resolução de sobrecargas: Está disponível um novo atributo que possibilita um melhor controle da resolução de sobrecargas de métodos e permite que os desenvolvedores definam a prioridade da sobrecarga a chamar em situações complexas.
  • Palavra-chave field: A palavra-chave field ganhou o recurso de pré-visualização. Isso dá acesso direto ao campo de suporte das propriedades automáticas, simplificando a lógica das propriedades.

Learn all about the support of C#13 features in ReSharper and Rider on our blog.

Code styles and cleanup

Limpeza de código

In ReSharper 2024.3, code cleanup has been re-engineered for more robust performance. It now leverages the same engine as scoped quick-fixes, ensuring thorough issue resolution and enhancing analyzer precision. Parallel preprocessing has also been added to optimize file handling. Além disso, agora você pode selecionar um perfil de limpeza de código para cada arquivo ou desativar a limpeza de arquivos específicos.

Formatação de código

There are new formatting options to give you even more flexibility:

  • A new option to control wrapping around an equal = operator.
  • A new Indent ‘break’ from ‘case’ option.
  • A new Treat ‘case’ statements with ‘break’ as simple option.

Naming styles

We’ve added a couple of new options to adjust naming rules more precisely.

  • Local functions now come with two options: Local functions with ‘async’ and Task-returning local functions (not ‘async’).
  • Methods have been given a new Task-returning method (not ‘async’) option to support methods with an async suffix in the name that aren’t marked with an async modifier but return a Task-like type. This is helpful when you declare a method in an interface where you aren’t allowed to use an async modifier, but which will return a Task type in implementation.

Code comments

Multiline To-do comments support

ReSharper 2024.3 now supports multiline To-do comments, allowing indented text on subsequent lines to be treated as part of the same To-do item. Este novo recurso facilita agrupar anotações e tarefas relacionadas na sua base de código. You can now add context to your To-dos across multiple lines, improving readability and organization.

Additionally, we’ve updated the Peek To-do link (Ctrl+Shift+click) action that lets you look up an external issue associated with a To-do item inline. It now uses a modern web browser engine to give you a better rendering experience.

Experiência do usuário

Tooltip colorization

For this release, we reviewed almost all C# error, warning, and informal messages and introduced text colorization wherever possible.

Approximately 600 messages were updated with tooltips that offer a more intuitive reading experience, with the included code elements highlighted in the editor's familiar color scheme.

Suporte para C++

O ReSharper 2024.3 inclui várias melhorias no suporte ao C++:

  • Melhor desempenho em soluções grandes.
  • The Move to Folder refactoring for C++ files.
  • Suporte a novos recursos das linguagens C++ 23, C 23 e GNU.
  • New code assistance features for Unreal Engine developers.
  • Maior interoperabilidade com as ferramentas do Clang.

Saiba mais sobre as atualizações para C++ na página de Novidades do ReSharper C++ 2024.3.

Descompilador

IL code for assembly manifest

The IL Viewer tool window now provides IL code for assembly manifest, including:

  • Assembly and module info such as name, custom attributes, etc.
  • Referenced assemblies and modules.
  • Forwarded types.
  • A list of files and resources.

This IL code is shown when the caret in the text editor is on an assembly or module attribute or somewhere inside an <AssemblyName>.cs file for external assemblies.

Support for primary constructors

When working with classes that declare a primary constructor, the decompiler will now display the constructor and its parameters correctly, giving you a complete view of how objects are instantiated directly from the decompiled code.

Baixar

Avaliação gratuita por 30 dias disponível