如何使用@link标记链接到方法?
我想改变
/**
* Returns the Baz object owned by the Bar object owned by Foo owned by this.
* A convenience method, equivalent to getFoo().getBar().getBaz()
* @return baz
*/
public Baz fooBarBaz()
Run Code Online (Sandbox Code Playgroud)
至
/**
* Returns the Baz object owned by the Bar object owned by Foo owned by this.
* A convenience method, equivalent to {@link getFoo()}.{@link getBar()}.{@link getBaz()}
* @return baz
*/
public Baz fooBarBaz()
Run Code Online (Sandbox Code Playgroud)
但我不知道如何@link正确格式化标签.
我可以在评论中将链接添加到Visual Studio中的代码块吗?
例如:
// block 1
class class1
{
}
// block 2
class class2
{
// review [___class1]
}
Run Code Online (Sandbox Code Playgroud)
[___class1]是class1的链接
提前致谢.