CommentLinks icon indicating copy to clipboard operation
CommentLinks copied to clipboard

Request: When using the link:run> format, replace $(ItemPath) with the active file

Open hakakou opened this issue 3 years ago • 1 comments

Perhaps so something like this could work:

// Compare link:run>"mp.bat $(ItemPath)"

$(ItemPath) for me is the most useful, but to take this even further you could use the same tags the external tools use: https://docs.microsoft.com/en-us/visualstudio/ide/managing-external-tools?view=vs-2019

hakakou avatar Jul 11 '22 16:07 hakakou

Because the extension works with files that aren't part of a solution, (or even a project) I don't think it's appropriate to try and handle everything that VS supports with external tools.

Replacing $(ItemPath) with the path of the file should be quite straightforward.

This should probably also be case insensitive too.

mrlacey avatar Jul 13 '22 19:07 mrlacey