Open mikadumont opened 4 years ago
AbstractCodeCleanupService.GetDiagnosticSets
to compose diagnostics ids dynamically so when we add new codestyle fixes we don't need to manually update themAbstractCodeCleanupService.CleanupAsync
to run an arbitrary number of codefixesAbstractCodeCleanupService.GetDiagnosticSets
to pull directly from editorconfig optionsAbstractCodeCleanupService.CleanupAsync
to run on any codefix that supports fix-allCan we also ensure/fixup string duplication here? (note: i'd like to front load that if possible) :)
Can we also ensure/fixup string duplication here? (note: i'd like to front load that if possible) :)
already in progress. sooner than 17.1
Thanks you very much for all the work done on .editorconfig
\o/
the Location
is very nice to have
As I'm not sure if i'm allowed to comment here or not I have several questions here ;)
Is it possible somehow to have a button in the UI to toggle the view between the new UI or having it as text ? The Search + multi tab + multi profile is not always UX friendly / easy to use:
Ctrl+F
on that UI seems to bring Find and Replace
on the entire solutionCtrl+E
is a thing for Sub Search Fitler (not sure), it does not catch upIs it possible somehow to have a button in the UI to toggle the view between the new UI or having it as text ?
I also have this issue. Because custom pattern rules do not appear in UI Rules like these:
[{App.xaml.cs,Main.*.cs,Shell.xaml.cs}]
[**/Uno.UI.SourceGenerators/**.cs]
The Search + multi tab + multi profile is not always UX friendly / easy to use
Completely agree
Is this the correct issue for tracking adding "Code cleanup on save" support for additional languages, such as JS and CSS, or is there another issue for that?
Probably outside of scope of this issue, but my problem with code cleanup is that is used to quite be fast in .net core, now it is excruciatingly slow. Class file with 70 lines takes 10-30 secs to cleanup and the only changes it is supposed to make is within the class file being saved not outside. And running code cleanup for whole solution takes ages.
@JadaVonRuth I think that should be fixed in the next version of VS: https://developercommunity.visualstudio.com/t/Code-Cleanup--in-174-much-slower-than-i/10207182 🙂
@mikadumont: This issue was moved a bit between various milestones last year, but now there hasn't been any changes for a while. Any chance of a ballpark estimate for when this issue might get some attention again?
@sharwell Lets queue this up next. Mika confirmed user feedback validating interest in this.
Overview
EditorConfig helps maintain consistent coding styles for multiple developers working on the same project across various editors and IDEs. The EditorConfig project consists of a file format for defining coding styles and a collection of text editor plugins that enable editors to read the file format and adhere to defined styles. EditorConfig files are easily readable and they work nicely with version control systems. Code Cleanup allows developers to apply code style preferences from an EditorConfig. Currently only a handful of code styles are supported by code cleanup and should make every EditorConfig option (Code Styles, Naming Styles, and Third-Party Analyzers) available in code cleanup.
Design Proposal
Selecting configure code cleanup:![image](https://user-images.githubusercontent.com/46729679/145862876-987c0341-0554-4c61-9a95-f4446959631e.png)
Will open a document tab for Code Cleanup similar to the current document tab for EditorConfig.
Solution Explorer Right click menu and broom icon in the editor should only display Run Code Cleanup and delete the second profile option:![image](https://user-images.githubusercontent.com/46729679/129118828-5fcf3705-e9eb-4ba3-8880-e252e9eb1705.png)
Solution Explorer right click menu should decouple![image](https://user-images.githubusercontent.com/46729679/129118876-cd90e697-990c-4966-848d-9ea0accef4b3.png)
Analyze and Run Code Cleanup
and have a separate menu option for Run Code Cleanup.The new menu name for Analyze should be
Code Analysis
.Code Cleanup on save:
Code Cleanup on Save
.The Add > New EditorConfig in the Solution Explorer right-click menu will replace the current IntelliCode EditorConfig with the .NET default EditorConfig.![image](https://user-images.githubusercontent.com/46729679/139160113-195fe942-18a8-4c96-a1bd-ed986cff0de4.png)
Tracking Issues