ReSharper c++ unused includes

How I can run this inspection for all file and get the text log with list of unused includes by file?

It is inconvenient to view each file by hand.


Or how I can automatically remove all unused header by one click after inspection?

1 comment
Comment actions Permalink


You can run the inspection for all files by invoking "Find Code Issues" on a set of files, on a project or on a solution.

To remove all unused headers open the context menu by hitting Alt+Enter on an unused include, and select one of the bulk fix items.

You can also use "Code Cleanup" to fix this and other common issues.


Please sign in to leave a comment.