Remove unused using directives

Hello,

I want Rider to remove unused 'using' directives in my code. So I went to settings Editor -> Code Cleanup made a copy of the "Built-in: Reformat Code" profile and then checked C# -> Optimize 'using' directives -> Optimize 'using' directives and also set that profile as default for silent cleanup. But still rider doesn't seem to care...

Anything else I need to do?

Thank you

1 comment
Comment actions Permalink

Hi Marco! 

You can use `Code | Optimize imports` for this purpose. Could you check it? 

If you request is more about silent code cleanup, could you please clarify your Rider version (`Help | About` or `JetBrains Rider | About`) and the type of your project? 

0

Please sign in to leave a comment.