'How to add a file path reference inside javascript comment?
Given the following code...
function foo() {
// Look at "./image.png" for reference.
}
Is there a standard way to write "./image.png"
so that when the text is clicked (or ctrl clicked) — using an IDE — the file image.png
opens either in an external image editor or inside the IDE itself ?
I'm looking for a solution that works with Webstorm and VSCode.
Solution 1:[1]
Within the comment itself it is impossible since it is only text. However, most IDEs automatically handle that for you for ease of editing.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|---|
Solution 1 | Mathiuscov |