2013-04-21 67 views
2

在Visual Studio中,是否可以在跳转到文件特定行的源文件内创建超链接?我想创建一个链接到一个特定的线路,像这样:在源代码中放置超链接

// [[#DoStuff|Clicking here will take you to the method "doStuff."]] 
// 
// 
// 
// 
// #DoStuff 
//clicking the hyperlink should jump to the line above. 
function doStuff(){ 

} 

有没有办法在会跳转到一个特定方法的注释来创建超链接?

+0

它看起来像有一个名为HyperAddin的插件可以做到这一点:http://hyperaddin.codeplex.com/不幸的是,它看起来像它只是可用于Visual Studio 2005和Visual Studio 2008. – 2013-04-21 17:49:10

+1

不确定为什么当有很多导航工具内置到vs中时,为什么需要超链接到方法,这个要求是否有很好的理由? – Charleh 2013-04-21 17:54:24

+0

@Charleh看起来已经可以[使用CTRL + G快捷键跳到特定的行](http://blogs.msdn.com/b/zainnab/archive/2010/03/08/go-to-一个线数-vstipedit0026.aspx)。这应该是有用的。 – 2013-04-21 17:56:10

回答