-
Notifications
You must be signed in to change notification settings - Fork 510
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
Run autofix across the entire solution #2147
Comments
Do you mean from a command line, or from within Visual Studio? |
I'm interested in this as well, Is it possible to just tell Visual Studio to auto fix an entire file? |
@darrensteadman In Visual Studio, this is possible for the current document, project, or even entire solution (already from the very first release of VS with analyzers): @sharwell Do you know of any oss tools out there that will run code fixers on an entire solution, as a command line tool? |
@tiesmaster yes, |
@alexandru-calinoiu Thnx for the tips, however, I was talking about tools that allow you to run the Roslyn analyzers/code fixers, as what this project is about. |
Why was this closed? The question wasn't answered. Being able to run a command-line Roslyn tool to do codefixes e.g. on checkin would be incredibly useful - I'm not averse to building something like that myself, but obviously if there is already an official/recommended tool that does this, I'd prefer to use it. If not, the extension points that would be needed, or pointers in the right direction, would be very welcome - although I suspect the fact that |
I'm also interested to see something like that the day of light. I believe the Roslyn team(s) are working on something like that, and if it's "Fix most code style violations in the current document with a single click." on the VS 2018 roadmap, then it should be due at the end of the month ;) Though, looking at this issue, I see there is still a lot to do ;) |
@IanKemp There is no officially supported mechanism to do that. If you build this repository from source, the StyleCopTester tool may be able to provide some untested/unsupported functionality that looks like this. See #2017. The version of this tool in the master branch already uses the replacement for |
Any updates on this? |
@rdcm No one is watching or working on this. I would suggest filing an issue on dotnet/roslyn if this is a feature of interest to you. |
Is there a way I can run autofix across the entire solution, let's say I want the
this
prefix to be applied to all the files in the solution.The text was updated successfully, but these errors were encountered: