简体   繁体   中英

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

I need to link a file in a comment so that others can click it and the explorer opens the folder or the file opens I need something like this:

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

You can try the following comment to do it.

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

The rule is file:/// + your relative file path.

This is my tested result:

在此处输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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