Dear support,
I found that the code cleanup does not work completely. It does not format my code on save. I normally clean up my code on save. I always use string interpolation, sort the methods, properties and remove duplicate empty line. But nothing is changed now. Would you mind telling me how can I make it work again
Hello,
Would you please share your CodeRush options? Activate the CodeRush\Support\Settings Folder… menu item, zip the opened folder, and paste your archive here.
Also, if you have CodeRush solution settings in your project, please share them as well. You can find them in the .cr folder in the solution root directory.
Dear support,
Thank you for the quick reply.
I found that it works in my winform application but not work in asp.net code behind file. On file save, code cleanup will not be run. But I can manually (ctrl + ".") to trigger the action.
Alex
Thank you for the settings and details. Unfortunately, they did not help me reproduce the issue on my side. Code Cleanup is applied when I save the Contact.aspx.cs file. Please see the attached screencast.
Please share the following information and files:
I look forward to hearing from you.
Hi Artem,
Attached is the zip file.
I have tried to do a code format before zipping the files. There is exception. You can search "2020.05.28 11:02:14.4119" in file named "Package 2020-05-28 09.32.35.log".
Thank you for your effort on this problem
Alex
sorry. forget the visual studio about
Microsoft Visual Studio Community 2019
Version 16.6.0
VisualStudio.16.Release/16.6.0+30114.105
Microsoft .NET Framework
Version 4.8.04084
Installed Version: Community
Visual C++ 2019 00435-60000-00000-AA915
Microsoft Visual C++ 2019
ASP.NET and Web Tools 2019 16.6.936.3669
ASP.NET and Web Tools 2019
ASP.NET Core Razor Language Services 16.1.0.2020603+b3ac44798c16fff5b95dbcfe62dea84aa9a1bd72
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2019 16.6.936.3669
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 16.6.936.3669
Azure App Service Tools v3.0.0
Azure Functions and Web Jobs Tools 16.6.936.3669
Azure Functions and Web Jobs Tools
C# Tools 3.6.0-4.20251.5+910223b64f108fcf039012e0849befb46ace6e66
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
CodeRush for Roslyn 20.1.3.0
DevExpress CodeRush for Roslyn package.
CodeRush for Roslyn Tool Windows 20.1.3.0
DevExpress CodeRush for Roslyn Tool Windows package.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Extensibility Message Bus 1.2.0 (d16-2@8b56e20)
Provides common messaging-based MEF services for loosely coupled Visual Studio extension components communication and integration.
GitHub.VisualStudio 2.11.96.24460
A Visual Studio Extension that brings the GitHub Flow into Visual Studio.
IntelliCode Extension 1.0
IntelliCode Visual Studio Extension Detailed Info
Microsoft Azure Tools 2.9
Microsoft Azure Tools for Microsoft Visual Studio 2019 - v2.9.30212.1
Microsoft Continuous Delivery Tools for Visual Studio 0.4
Simplifying the configuration of Azure DevOps pipelines from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft Library Manager 2.1.50+g25aae5a24a.R
Install client-side libraries easily to any web project
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 16.6.17 (9692114)
Support for debugging Mono processes with Visual Studio.
NuGet Package Manager 5.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit https://docs.nuget.org/
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
SQL Server Data Tools 16.0.62004.28040
Microsoft SQL Server Data Tools
Syncfusion Xamarin Project Templates 13.4.0.53
A multi-project template for building iOS, Android, and Windows apps using Syncfusion Xamarin components.
Syncfusion Xamarin Toolbox 16.2.0.19
Syncfusion Essential Studio for Xamarin Toolbox Visual Studio extension.
Syncfusion.VSExtension.Troubleshooter 17.3.0.14
Add-in for Troubleshooting the Syncfusion projects.
SyncfusionMenu Extension 1.0
SyncfusionMenu Visual Studio Extension Detailed Info
Test Adapter for Boost.Test 1.0
Enables Visual Studio's testing tools with unit tests written for Boost.Test. The use terms and Third Party Notices are available in the extension installation directory.
Test Adapter for Google Test 1.0
Enables Visual Studio's testing tools with unit tests written for Google Test. The use terms and Third Party Notices are available in the extension installation directory.
TypeScript Tools 16.0.20417.2002
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 3.6.0-4.20251.5+910223b64f108fcf039012e0849befb46ace6e66
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.9.1.0 for F# 4.7 16.6.0-beta.20217.4+1c969cac25e2d38d71872efe6c8226029e42bb59
Microsoft Visual F# Tools 10.9.1.0 for F# 4.7
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Container Tools Extensions (Preview) 1.0
View, manage, and diagnose containers within Visual Studio.
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Containers 1.0
Visual Studio Tools for Containers
VSColorOutput 2.71
Color output for build and debug windows - https://mike-ward.net/vscoloroutput
Thank you for the logs and content of Visual Studio's About dialog. I found the problem with the "Convert to string interpolation" clean up provider in the log. I suggest you temporarily disable this provider on the CodeRush\Options…\Editor\C#\Code Cleanup options page and check if the issue is gone.

Also it would be a great help if you can share with us content of the SampleFirstPage.aspx.cs file. This will help us to reproduce and fix the problem quickly.
Attached is the SampleFirstPage.aspx.cs. You may find that some of the strings in the code are using string interpolation. It is because I manually apply the clean-up (ctrl + . and select string interpolation).
Good news is after unchecking the string interpolation, code rush do other cleanup normally.
Thank you for the sample code file. I have reproduced the issue. We will keep you updated when the fix is ready.