Allow apply multiple fixes from analyser window at once on Intellij Plugin
See original GitHub issueUse case
Using Flutter Intellij plugin version 58.0.3
it shows the list of warnings and info results from the linter, and it lets you go to each file and gives you suggestions to fix it. The proposal is to allow multiple fixes at the same time from the list of results.
The list is this one:
The specific issue comes from migrating from flutter 1 to 2 where we get a lot of new warnings and info results, and a lot of them are pretty simple, and without this I need to go to each file and fix it, it would be pretty fast if I could select multiple items at once and click fix, test if it worked and commit.
Proposal
I would love to have an option after I right-click a list of items (like on the gif) and get an option “Fix all of this automatically”:
Issue Analytics
- State:
- Created 2 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Get results and fix problems | IntelliJ IDEA Documentation
IntelliJ IDEA performs code analysis and applies quick-fixes from the selected inspection profile to the detected issues.
Read more >File and project analysis | IntelliJ IDEA Documentation
IntelliJ IDEA analyses your code in the file that is currently opened in the editor and highlights detected problems as you type.
Read more >Run inspections | IntelliJ IDEA Documentation - JetBrains
From the main menu, select Code | Inspect Code. · Select the scope of files that you want to analyze. Click the the...
Read more >Problems tool window | IntelliJ IDEA Documentation - JetBrains
The Problems tool window displays problems that IntelliJ IDEA detects in your project using several tabs: Current File. Project Errors. Inspection Results.
Read more >Dependencies analysis | IntelliJ IDEA Documentation - JetBrains
Dependencies analysis. Last modified: 07 December 2022. If you have a large Java project with several modules that uses multiple libraries, any operation ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I’m removing
[flutter_tools]
from the title because the specific backend that would implement this functionality is probably the analyzer and not the flutter toolThanks for the details @bwilkerson. Regarding the two complications you mentioned, I would think we should ignore any selected problems that require making a choice, but also choose to apply the fix rather than ignore it, since the user gave us that instruction, but I could see a counter-argument, too. I can’t transfer issues to dart-lang/sdk anymore, so maybe I’ll add an issue there. That would benefit VS Code, too, at least potentially.
@danielgomezrico Are you aware of the
dart fix
command that was mentioned above?