Contrain Rename

3 posts, 1 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 21 Mar 2011 Link to this post

    Is there a way to constrain a rename to the open document I'm in?

    I use "context" a lot, and when I move it to be a private member and rename (to make it _context) JC searches and opens a dialog with context references across the whole (large) solution.
  2. Answer
    Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 25 Mar 2011 Link to this post

    Hello Steve,

    I guess you want to be able to rename javascript global variable only in the current file. Please, let us know if it is another case.

    Basically, it is not really 100% safe when you want to rename a global variable, because often javascript files have references that we can't easily track, assembly resources, dynamic loading etc, so we decided that it would be better to have that behavior by default, but you are right, it would be best if we have an option for that. I created a public PITS item for it - Create an option for "Rename only in the current file", you can track its progress. 

    Regards,
    Svetlozar Angelov
    the Telerik team
  3. DevCraft banner
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 25 Mar 2011 Link to this post

    Nope, I just want to rename a local variable in the open document :)

    I realize that it CAN do global...but the variable I'm trying to rename is declared locally, so I just wanted to rename it quickly, not have a second big dialog popup + processing that comes with searching the solution.

    Thx for the pits issue

    Steve
Back to Top