locked
Glyph - Color Indicator for Code Changes – Track Changes in Visual Studio 2010 RRS feed

  • Question

  • Is there a way in Visual Studio 2010 SDK SP1 to change the behavior of the Track Changes?

    I would like to override it to add some other capabilities, but didn't found the way at the moment.


    TechHeadBrothers - http://www.TechHeadBrothers.com

    Friday, May 25, 2012 7:10 PM

All replies

  • Hi Laurent,

    We’re doing research on this issue. It might take some time before we get back to you.

    Thank you for your understanding and support.

    Best regards,

    Ego

    Tuesday, May 29, 2012 6:15 AM
  • Hi Laurent,

    Can you clarify what exactly you are looking to do here? The tackchanges stuff is pretty tightly wired into the editor implementation. I don't know if any way to change that (short of removing it entirely). There doesn't seem to be any sort of customization around the implementation.

    But there's nothing stopping you from implementing your own margin glyphs.

    Sincerely,


    Ed Dore

    Tuesday, May 29, 2012 7:56 PM
  • Hi Ed,

    Today I am targeting the Visual Studio 2012 SDK.

    I would like to modify the track changes to offer a contextual menu to show the original code which changes, opening a diff, navigate next & previous changes...

    Sure I could do a margin glyphs, which I started but the requirements I have would match the track changes feature so nicely.

    Best Regards
    Laurent


    TechHeadBrothers - http://www.TechHeadBrothers.com

    • Proposed as answer by Ego Jiang Wednesday, September 26, 2012 2:32 AM
    • Unproposed as answer by Ego Jiang Wednesday, September 26, 2012 2:34 AM
    Tuesday, September 25, 2012 7:53 AM
  • Hi Laurent,

    I would like to modify the track changes to offer a contextual menu to show the original code which changes, opening a diff, navigate next & previous changes...

    Have your requirements been realized?

    Best regards,


    Ego [MSFT]
    MSDN Community Support | Feedback to us

    Wednesday, September 26, 2012 2:41 AM
  • Hi Laurent,

    I don't believe this is possible. The trackchanges widget doesn't have any facilities that would allow for displaying a context menu. You could do this with a custom glyph. But this isn't as simple as that.

    When you edit a code file, the changes are stored on the undo stack. I don't think there's a way you diff that scenario. You might be able to re-read the content of the file to diff it against what's currently in the text buffer, but beyond that, I don't have any great ideas on how to actually implement such a feature.

    Sincerely,


    Ed Dore

    Wednesday, September 26, 2012 2:51 AM
  • Hi Ed

    Thanks for your answer.

    That's really too bad because it block quite some extension scenario.

    Is there any other way to extend the text editor?

    Regards
    Laurent


    TechHeadBrothers - http://www.TechHeadBrothers.com

    Friday, September 28, 2012 1:16 PM