首页 > 技术文章 > codejumper的跳转代码

shiningrise 2014-10-15 23:07 原文

        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();
        }

 

推荐阅读