-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Easy code cleanup with EditorConfig #40163
Comments
Execution Plan17.117.1 Preview 2
17.217.2 Preview 1
17.2 Preview 2
17.317.3 Preview 1
17.3 Preview 3
|
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 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 ?
|
I also have this issue. Because custom pattern rules do not appear in UI
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:
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:
Solution Explorer right click menu should decouple
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.
Tracking Issues
The text was updated successfully, but these errors were encountered: