Released: Jul 2, 2025
25.1 での更新項目
機能
AiGen and AiFind
- CodeRush 25.1 introduces AiGen and AiFind - AI-powered tools that help you generate, modify, and navigate code using natural language. These features are built right into CodeRush (and by extension, Visual Studio) and deliver fast, cost-effective AI assistance right inside your editor.
AiFind - Natural Language AI Search
- AiFind brings semantic AI-powered search to Visual Studio. Some examples of prompts that lead to an AiFind search:
- "I'm looking for all methods that work with or change the customer list."
- "Show me all the controls that do not have a style."
- "I want to see all the methods that may have a security issue."
- "Show me all public members missing XML doc comments."
- AiFind highlights matching elements in the active file, and the Navigator helps you review each one.
AiGen and AiFind Notes
- AI-generated code may not always be correct.
- AiGen is great at making changes to a single file (or a designer and its code behind), but for reliable code changes involving many files at once (like a member signature change), refactoring tools generally produce better results.
- AiGen changes can be undone/redone in a single step - no need to manually track multiple edits.
- AiFind currently works within the active file only.
- C# and XAML are supported in this release.
- Support for additional languages is expected in future releases.
- You can provide additional context to AiGen and AiFind by copying another class to the clipboard and using the word "clipboard" in your prompt. This is useful when I want AI to produce code involving the active class and the one of the clipboard (like setting up data binding, creating factories, etc.).
Changes to Default Options
- Updated AI Model - The default AI model is now "gpt-4o". You can change this on CodeRush's IDE/Cognitive/General options page.
- Disabled Expression Dictation - Disabled Expression Dictation by default (to reduce potential collision/confusion with the new AiGen/AiFind features). You can re-enable this on the IDE/Cognitive/General options page.
Code Issues
- Improved analysis of async code patterns, adding new code issues to report situations where code may be missing an intended 'await':
- Inside try and using statements, which could cause problems with exception handling and premature object disposal.
- Inside synchronous code, effectively producing fire-and-forget tasks.
Organize Members
- Improved handling of initialized fields and properties. Removed the "Skip initialized fields" setting. Instead, Organize Members now actively analyzes dependencies between such members, so that they can be correctly grouped without altering runtime behavior (initialization sequences are preserved for members that depend on other members).
- You can now group record struct and record class types independently (C#).
- You can now group Module types (VB).
- You can now group by private protected visibility (C#, VB).
- Delegates are now properly grouped as types (not members).
- Updated built-in schemes (Default and StyleCop) to properly group records, modules and private protected members.
- You can now group and sort by new, partial, async, volatile, ref, required, implicit and explicit modifiers in C#.
- You can now group and sort by Shadows, Partial, Async, WriteOnly, Default, Widening and Narrowing modifiers in VB.
Avalonia XAML
- CodeRush XAML features now work in .axaml (Avalonia XAML) files as well.
Context Providers
- Added two new context providers [DebugRunMode] and [DebugBreakMode]. You can use them to setup context for keyboard shortcuts, templates, and any other feature that supports context.