question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Run autofix across the entire solution

See original GitHub issue

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.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:5
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
tiesmastercommented, Jun 22, 2016

@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): image

@sharwell Do you know of any oss tools out there that will run code fixers on an entire solution, as a command line tool?

1reaction
IanKempcommented, Jun 1, 2018

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 MSBuildWorkspace is still MIA (see dotnet/roslyn#17974) will be a problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Is there a way to automatically fix all ESLint errors in Visual ...
you can use eslint cli directly which would be faster, just run eslint --fix in the terminal. just make sure you installed eslint...
Read more >
How To Enable Linting on Save with Visual Studio Code ...
You can set up ESLint to run auto-fix every time you press CTRL+S (or COMMAND+S ).
Read more >
Auto-fix and format your JavaScript with ESLint
For VS Code, install the ESLint package. Then, to format on save, go to global settings and search for ESLint and turn on...
Read more >
Command Line Interface Reference
A pluggable and configurable linter tool for identifying and reporting on patterns in JavaScript. Maintain your code quality with ease.
Read more >
How to run ESLINT on save (VS Code) - YouTube
... Learn CSS Grid: https://CSSGrid.io/friend/YONGZHI I Found an Answer by Twin Musicom is licensed ... How to run ESLINT on save (VS Code)....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found