Add Usings: for Project and Solution #56409
Labels
Area-IDE
Feature Request
Need Design Review
The end user experience design needs to be reviewed and approved.
Projects
Milestone
Brief description:
Currently, if you're using classes that exist in a namespace like
System.Linq
but you forgot to add the import, you can right-click and use the "using System.Linq;" codefix. This is great but it can only be run on one file at a time.Please enable this codefix to run on the entire project or hte entire solution. When it runs, it should fix all the files that have the exact same type or namespace that is missing. For example, if I am missing a using to
System
and I run the code-fix on a line that shows the error:```The type or namespace name 'DateTime' could not be found (are you missing a using directive or an assembly reference?)````
It should add
using System;
to any place a DateTime is causing that error but not to places where another class might be.Languages applicable:
C#
Documentation requirements:
When this analyzer is implemented, it must be documented by following the steps at Documentation for IDE CodeStyle analyzers.
The text was updated successfully, but these errors were encountered: