codejumper的跳转代码

        public void JumpToSource(vsCMPart location = vsCMPart.vsCMPartNavigate)
        {
            TextPoint startPoint = Original.GetStartPoint(location);
            Document openDoc = _appConfig.HookInformation.Dte.ActiveDocument.ProjectItem.Document;
            ((TextSelection) openDoc.Selection).MoveToPoint(startPoint);
            startPoint.TryToShow();
            openDoc.Activate();
        }

 

你可能感兴趣的:(code)