Remove unused Using statements

10 posts, 0 answers
  1. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 26 Apr 2010 Link to this post

    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
  2. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 28 Apr 2010 Link to this post

    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.
  3. DevCraft banner
  4. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 28 Apr 2010 Link to this post

    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 
  5. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2010 Link to this post

    I do see Telerik.Personalization.dll in my bin of the SiteFinity site.  I am using Sitefinity 3.7 sp2 if that helps any. 
  6. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 29 Apr 2010 Link to this post

    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.
  7. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2010 Link to this post

    • 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

  8. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 29 Apr 2010 Link to this post

    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. 
  9. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 30 Apr 2010 Link to this post

    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.
  10. David
    David  avatar
    35 posts
    Member since:
    Dec 2008

    Posted 01 May 2010 Link to this post

    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
  11. Svetlozar
    Admin
    Svetlozar avatar
    271 posts

    Posted 06 May 2010 Link to this post

    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.
Back to Top
DevCraft banner