This is a migrated thread and some comments may be shown as answers.

Remove unused Using statements

9 Answers 122 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
David
Top achievements
Rank 1
David asked on 26 Apr 2010, 09:06 PM
Can JustCode identify any unused Using Statements for removal? (like Resharper)

I also notice the Fix Using does not work on using Telerik.Personalization.  I was working on a user control and did the alt enter key to find the missing using, did not work (no popup).

Thanks,
David

9 Answers, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 28 Apr 2010, 09:15 AM
Hello David ,

Thank you for contacting Telerik Support.
  • JustCode doesn't have a warning for unused using statements. We have planned this feature for the next release .What you can do now - JustCode -> Refactor -> Organize And Add Missing Usings will remove the unused using statements. 

  • Could you please verify that you have the Telerik.Personalization assembly reference added to the project.

Greetings,
Svetlozar Angelov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
David
Top achievements
Rank 1
answered on 29 Apr 2010, 02:18 AM
I bet I dont have the Telerik.Personalization assembly refernce.  It is a sitefinity project I am working on, I will check in the morning when I arrive a work. 

Thanks, I will let you know in the morning,
David 
0
David
Top achievements
Rank 1
answered on 29 Apr 2010, 02:37 PM
I do see Telerik.Personalization.dll in my bin of the SiteFinity site.  I am using Sitefinity 3.7 sp2 if that helps any. 
0
Svetlozar
Telerik team
answered on 29 Apr 2010, 04:50 PM
Hi David ,
Thank you for your feedback. In order to assist you we need some additional information.
  • What version of Visual Studio do you use?
  • Where did you try to hit alt+enter? *.ascx or *.cs file?
  • Does this happen every time? Is it reproducible?
  • Can you please clarify - there was no pop-up showed or there was no suggestion for the missing usings?
  • Is there a justcode warning (the code is underlined) about the missing reference when you press alt + enter?

Any additional information would be appreciated! Could you please give us an example of the source code you are trying with?
Best wishes,
Svetlozar Angelov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
David
Top achievements
Rank 1
answered on 29 Apr 2010, 06:28 PM
  • What version of Visual Studio do you use?    VS 2008
  • Where did you try to hit alt+enter? *.ascx or *.cs file?   CS file
  • Does this happen every time? Is it reproducible? YES
  • Can you please clarify - there was no pop-up showed or there was no suggestion for the missing usings? No Pop Us Showed
  • Is there a justcode warning (the code is underlined) about the missing reference when you press alt + enter?   The code has a red underline before I press alt + enter. 

Version on this PC is: Q1 2010 (2010.1.305.2)

I tested this on a new page under the sitefinity website, and created a new site without sitefinity to confirm.    I will test this at home tonight on my home PC to see if I have the same problem there.  It has VS 2008 and 2010 on it.  I will let you know later tonight.

Thanks,
David

0
David
Top achievements
Rank 1
answered on 30 Apr 2010, 02:59 AM
Here is an update, I try it at home on VS2010, and it is working.

However on VS2008 when I press the Alt + Enter key it pops out the Properties tab.  Must be a VS2008 thing.  I will upgrade the work computer.
   
The JustCode - refactor - Organize is work great.  In your next release see if you get were you Ctrl + Right Mouse Click to pop up the window.  The Alt - Enter feels a little wierd we I am typing. 
0
Svetlozar
Telerik team
answered on 30 Apr 2010, 12:03 PM
Hi David ,

Thank you for your feedback. What I can see is that you are using the first official release of JustCode from Q1. We recently released a service pack for Q1. Please get it from our site and see if it will fix the problem in Visual Studio 2008.

We will definitely consider your suggestion about Ctrl + Right Mouse Click.

Regards,
Svetlozar Angelov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
0
David
Top achievements
Rank 1
answered on 01 May 2010, 02:42 PM
Hi Svetlozar ,

   It is still doing it on VS2008  It using Version Q1 SP1 2010 (2010.1.415.1).  If knowbody else is having problems it is not a big deal.  I am thinking another plug in might be interfering with the command.  It is working VS2010.    My work around VS2008 is right click, select just code, then expand collection to get the pop up. 

  I look forward to the next update.

Thanks for the help,
David
0
Svetlozar
Telerik team
answered on 06 May 2010, 10:35 AM
Hi David ,

Could you send over a screenshot of the Visual Studio Add-in manager and the JustCode logs? You can send them at svetlozar.angelov[at]telerik[dot]com or you can open a ticket and attach them there.
  • JustCode logs are in your \[Account]\AppData\Local\JustCode\Logs directory
  • Tools -> Add-in Manager will list all available add-ins.   
I really appreciate your assistance. Have my apologies for the trouble caused.

Best wishes,
Svetlozar Angelov
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
David
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
David
Top achievements
Rank 1
Share this question
or