Resharper C - Short Review

Developer Tools



Product Overview: ReSharper C

ReSharper C is a powerful developer productivity extension designed specifically for C developers using Microsoft Visual Studio. This tool enhances the development experience by integrating a wide range of features that improve code quality, reduce development time, and increase overall productivity.



Key Features and Functionality



On-the-Fly Code Analysis and Quick-Fixes

ReSharper C performs continuous code analysis as you edit your files, detecting errors and potential problems even before compilation. It offers over 40 quick-fixes that can be applied instantly using the Alt Enter shortcut, allowing you to address issues such as uninitialized variables, missing includes, and redundant code.



Smart Code Completion and Code Generation

The tool provides advanced code completion that suggests symbols, including those not yet included in the current file. It also offers a variety of code generation options, accessible via the Alt Ins shortcut, to generate boilerplate code such as constructors, getters and setters, equality and relational operators, and more. Additionally, ReSharper C includes customizable templates for generating common code snippets and entire files.



Refactorings

ReSharper C includes a robust set of refactorings to transform and improve your code. Key refactorings include:

  • Rename: Automatically updates all usages, comments, documentation, and related files when renaming classes, macros, or variables.
  • Extract Method: Helps create new methods from selected code fragments, identifying variables that can be converted into method parameters or return values.
  • Change Signature: Allows changes to function signatures, updating all usages, implementations, and overrides accordingly.
  • Introduce Variable and Inline Variable: Simplify code by introducing new variables or inlining existing ones.


Navigation and Search

The tool enhances navigation within your codebase, allowing you to quickly find and jump to specific declarations, members, method calls, and other code items. Features include inheritance hierarchy navigation, current file structure views, and the ability to navigate from symbols to their usages or declarations.



Code Formatting and Style Consistency

ReSharper C helps maintain consistent code style across your team by allowing you to configure and save formatting and naming preferences. It supports various predefined C naming styles such as STL, Google, LLVM, CamelCase, and Microsoft.



Support for Modern C and Specialized Projects

The tool keeps you at the cutting edge of C development by supporting the latest language features and best practices. It also includes special support for Unreal Engine projects and HLSL (High-Level Shading Language) shader files, making it particularly useful for game development. This includes smart code completion, integrated UnrealHeaderTool checks, and special support for reflection specifiers and remote procedure calls.



Unit Testing

ReSharper C facilitates unit testing by providing windows to view, group, filter, and run unit tests. It also helps in creating and managing unit test sessions, including generating GTest mock methods.



Additional Features

Other notable features include:

  • Extended Highlighting: Highlights syntax and matching code structures, such as delimiters, macros, and format specifiers.
  • Parameter Name and Type Hints: Displays parameter names and types directly in the code to enhance readability.
  • Documentation and Tooltips: Provides quick info tooltips with types, signatures, and documentation for code elements.
  • Control-Flow Analysis: Warns about unreachable code, uninitialized variables, and redundant control flow jumps in HLSL shader files.

In summary, ReSharper C is an indispensable tool for C developers, offering a comprehensive suite of features that enhance code quality, streamline development processes, and significantly boost productivity within the Visual Studio environment.

Scroll to Top