In Visual studio Add-In from context menu, when i click on it I need to replace already selected hardcoded string to without some othervalue with any double quotes.How can I achieve it? RRS feed

  • Question

  • I have an application where I am creating visual studio add-in. My requirement is from the Add-in manager they will select the add-in named "MyAddIn". I am using VS 2010, C#.

    in the sample application my code will be like this.

    String str="Hello";

    When I highlight this "Hello" string , right click on it , I will get context menu then clicked on it I should replace "Hello" value with some other value (for example     Work.GetResourceString.ToString();) should be replaced with any double quotes.

    Finally my output will be as below.

    String str=Work.GetResourceString.ToString();

    will it be done?.

    • Moved by Charles-Li Thursday, July 17, 2014 9:18 AM
    Thursday, July 17, 2014 5:43 AM


All replies