繁体   English   中英

是否可以在评论中有一个 ctrl+click 链接到具有相对路径的文件

[英]Is it possible to have a ctrl+click able link to a file with relative path in the comment

我需要在评论中链接一个文件,以便其他人可以单击它并且资源管理器打开文件夹或文件打开我需要这样的东西:

/// <summary>
/// Does something see file://$(SolutionDir)/SomeFolder/somefile.txt"
/// </summary>
public void MyMethod()
{}

您可以尝试以下评论来做到这一点。

/// <summary>
    /// This is a math function I found <see href="file:///test">HERE</see>
    /// </summary>
    public void MyMethod()
    { }

规则是file:/// + 你的相对文件路径。

这是我的测试结果:

在此处输入图像描述

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM