Remove unused usings from code in MonoDevelop

When I google this I see that this should be possible, but I can't find any menu item anywhere that does this in MonoDevelop 4.0.12. In Visual Studio it is easy. How do I do this automatically in MonoDevelop?
LVL 2
itniflAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ThommyCommented:
I know MonoDevelop really good, but I'm not aware of a function to delete unused code and I doubt that there is one!

Can you please post, what you have googled and what makes you believe that such a function exist?
ThommyCommented:
In former MonoDevelop versions there was a menu item called "Organize Usings".

In newer Versions you should try this:
Edit -> Preferences -> Other -> Source Analysis -> Enable Source Analysis.

When cursor is in usings section you should now see a yellow bulb, on which you can click or press Alt+Return to remove unused usings...
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

itniflAuthor Commented:
Under Edit -> Preferences -> Other I only have Log Agent.
Alt+Return only gives me the option to sort usings.
ThommyCommented:
What I told you in my previous post,  works under MonoDevelop 3.

As far as I know MonoDevelop 3.1.1 was the last  MD version. From then on it became Xamarin Studio, .which you can think of MD 4.0.
So what do you really use,  MonoDevelop or Xamarin Studio???

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
itniflAuthor Commented:
MonoDevelop/Xamarin
=== MonoDevelop ===

Version 4.0.12
Installation UUID: 06d78296-a762-47ff-a56a-1dd2a356816f
Runtime:
      Mono 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1) (64-bit)
      GTK 2.24.23
      GTK# (2.12.0.0)

=== Build Information ===

Git revision:
Build date: 2014-01-08 14:59:33+0000

=== Operating System ===

Linux
Linux CreativeNode 3.13.0-55-generic #94-Ubuntu SMP Thu Jun 18 00:27:10 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
itniflAuthor Commented:
Thank you for the tip, I Google'd with the name Xamarin instead of MonoDevelop and found this:
https://forums.xamarin.com/discussion/21534/remove-sort-using-is-this-available-from-the-xamarin-studio

"Make sure you have source analysis enabled in the preferences pane and a new context menu option should be available."

This will grey out unused usings and right clicking will let me refactor or fix that in the menu that appears.
ThommyCommented:
I also found this a few minutes ago and just wanted to post it, when I have recognized that you already have assigned the points.



Thank you very much for the points and good luck with MD/XS...
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Programming

From novice to tech pro — start learning today.