CodeRush Ultimate 24.2
Released: Dec 12, 2024
24.2 での更新項目
機能
Test Runner
- CodeRush can now run xUnit.Net v3 tests.
Voice Support
- Voice to Code - Alternate Input Modes
- Added alternate input modes using the Alt and Shift keys, which can now be optionally held down while talking to change how the individual spoken words are interpreted.
- When the Alt key is pressed while dictating comments or strings, CodeRush switches to code-first mode, and will find and emit matching identifiers into the strings or comments you're dictating.
- Inside dictated interpolated strings, you can use the Alt key to emit simple expressions (like "{nameof(PrintOrder)}" or "{myList.Count}" or "{selectedCustomer.Name}"). Curly braces are added automatically.
- When the Alt key is held down while dictating code, CodeRush switches to new identifier mode, allowing you to dictate the name of a new identifier or method call. To indicate a method call, after saying the method name release the Alt key and say the word "with", followed by any optional dictated arguments to be passed to the method. For example saying "my new method with three and four" (holding Alt while saying the bolded words) will generate "MyNewMethod(3, 4)".
- And you can use the Shift key to create strings. Words spoken while holding down the Shift key will create string literals in code, escape-quoted sequences of words inside strings, and quoted text in comments.
- More Voice-to-Code Expressions Supported
- The Voice to Code engine supports more expressions. All of these examples start by holding down the Ctrl key and speaking (after setting up for voice).
- New object creations with the spoken word "new".
- Reference generic types using the spoken word "of" (and optionally "and").
- New variable declarations and method calls using the Alt input mode.
- String literals using the Shift input mode.
- Use Shift and Alt together. Sometimes you need to declare new variables and assign them a value in a single phrase.
- Automatic indexing of indexable properties, collections, and arrays using the spoken word "of".
- Qualified namespaces and namespace aliases.
- While most needed parens are handled automatically by the voice-to-code engine, you can now explicitly dictate parentheses. Insert an open paren using the spoken words "group" or "open paren", and later you can optionally insert the close paren using the spoken word "close".
- Declaring Fields and Locals
- Using the new Alt input mode combined with all new supported expressions, you can now easily dictate field and local declarations.
- Overall Quality Improvements
- DevExpress improved the Voice to Code engine to produce higher quality results when speaking naturally.
- The Voice-to-Code engine also includes a higher degree of type validation for arguments, assignments, and binary expressions when mapping spoken words to code.
- Voice Commands - Added and enhanced voice commands:
- "View Designer" opens a designer view for the current document.
- "View Code" opens a code view for the current document.
- "Identify Monitors" reveals ID numbers for all your monitors. You can use these numbers with the Show Me command to place Visual Studio tool windows on a specified monitor.
- "Show Me ToolWindowName {on DislayId {at Position}}" opens the specified Visual Studio tool window on the specified monitor and position. DislayId can be a display number (use the "Identify Monitors" voice command to see the numbers) or it can be a relative location to your main monitor (for example, Left, Top, Right, Bottom-Right, etc). Position can be one of Left, Right, Top, Bottom, Top-right, Top-left, Bottom-left, Bottom-right).
Templates
- Added a number of new string providers you can use when creating custom templates:
- ?ProjectRelativeFilePath returns the path (relative to the project folder) for the active file.
- ?ProjectRelativeFileName returns the file path and name (relative to the project folder) for the active file.
- ?DefaultProjectNamespace returns the default project namespace for the active project.
- ?DefaultNamespace returns the default namespace for the active file using the project's default namespace and the file's relative location to the project folder.
- ?Substring(text, start, length) calculates a substring from the specified text, starting index, and an optional length.