ReSharper Plugin · Open Source

AgentSmith

C# code style validation plugin for ReSharper. Enforce naming conventions, validate XML comments, spell-check identifiers, and paste smarter.

View on Google Code Installation Guide
🏷️
Naming Conventions
📝
XML Comments
Spell Check
📋
Smart Paste
License

Terms of Use

Free & Open Source

Agent Smith is completely free to use. It has no harmful intentions — use it at your own risk. The source code is open and hosted on Google Code.

Community

Send comments to forever.zet[at]gmail.com
Report issues via the Issue Tracker
Read about Contributors


Setup

Installation

1

Download the plugin from the links below.

2

Extract the assembly to a path like C:\Program Files\JetBrains\ReSharper\v3.0\vs8.0\Bin\Plugins\AgentSmith — it must reside under the ReSharper folder; double-check the ReSharper and Visual Studio version in the path.

3

It will be listed among ReSharper plugins. Settings are available under ReSharper → Code Style.

Release Target Date Notes
1.3.0 Agent Smith ReSharper 4.0 23/08/2008 Comment reflowing, TestFixture fix, 'm' prefix added to defaults
1.2.0 Agent Smith ReSharper 3.1 Previous stable release

FAQ · Full Change Log · Previous Versions


Capabilities

Features

01 / NAMING

Naming Convention Validation

Configure exactly what naming rules apply to any declaration type. The plugin highlights violations in real-time and offers quick-fix suggestions.

Naming rules include:

  • Obligatory prefixes
  • Obligatory suffixes
  • Prefixes to avoid
  • Suffixes to avoid
  • Casing: Camel, Pascal, Uppercase
  • Regular Expression rules

Matching rules identify declarations by:

  • Declaration type
  • Visibility
  • Attribute marker
  • Base class / interface
02 / COMMENTS

XML Comment Validation

Agent Smith verifies that specific declarations carry XML comments. It spell-checks comment content and suggests quick-fixes including word substitutions and <see cref=…> replacements. The configuration interface is fully flexible.

03 / SPELLCHECK

Spell Checking

Comprehensive spell checking across your entire codebase:

  • XML comments
  • C# string literals
  • C# identifiers (split on camel humps)
  • Resource files (.resx)

OpenOffice dictionaries can be imported, providing support for multiple languages.

04 / PASTE

Smart Paste

When pasting text into an XML comment, Agent Smith automatically inserts /// characters at line breaks and optionally escapes XML-reserved characters. When pasting into a string literal, it escapes string characters accordingly — keeping your code clean without manual effort.