Visual Studio插件CodeRush 2021新版首发——v20.2.7
CodeRush能帮助你以极高的效率创建和维护源代码。Consume-first 申明,强大的模板,智能的选择工具,智能代码分析和创新的导航以及一个无与伦比的重构集,在它们的帮助下能够大大的提高你效率。
具体更新内容如下:
代码格式化
支持EditorConfig
现在CodeRush使用在EditorConfig文件中定义的Visual Studio格式设置。
![CodeRush for Visual Studio v20.2.7更新](https://image.evget.com/2021/01/27/20-2-7-editorconfig-support13oeg9gteruvbe9od.png)
与在CodeRush选项对话框中设置的格式设置参数相比,EditorConfig设置具有更高的优先级。
例如,csharp_new_line_before_open_brace设置(如上所示)会覆盖在Editor | C# | Formatting | Braces中的Wrap open brace选项设置为After(对于名称空间,类型,方法和简单方法)。
![CodeRush for Visual Studio v20.2.7更新](https://image.evget.com/2021/01/27/20-2-7-editorconfig-support-options2wb0e0bestfdy2e5n.png)
下面的截图显示了一个影响Format Document命令的EditorConfig设置示例。
![CodeRush for Visual Studio v20.2.7更新](https://image.evget.com/2021/01/27/20-2-7-editorconfig-support3vch6whwnz751yis8.gif)
支持Blazor
声明提供程序
现在可以在.razor标记中使用CodeRush声明提供程序,您可以使用它们来声明局部变量、方法、参数、字段、属性和常量。
例如,您可以应用Declare Field为激活的Blazor组件创建一个字段。
![CodeRush for Visual Studio v20.2.7更新](https://image.evget.com/2021/01/27/20-2-7-blazor-declare-providers46dckhptbbsnbk3rk.gif)
组织成员
改进的选项页面
现在"Group by" 部分包含改进的过滤器编辑器,该编辑器简化了分组规则的创建。
![CodeRush for Visual Studio v20.2.7更新](https://image.evget.com/2021/01/27/20-2-7-organize-members-options5g6b4e4lkaz0a123o.png)
DevExpress技术交流群3:700924826 欢迎一起进群讨论