I would like to be able to click on the filepath below to open the file that the path references.
const foo = require('services/api/bar')
Does VS Code offer "out-of-the-box" support for this feature? Or can support be gained from an extension?
Edit:
Originally when I answered this, I thought VS Code didn't support this feature because it doesn't work for me. Turns out, it doesn't work for several people. I have changed my answer to explain how support can be gained for everyone.
V.S. Code offers support "out-of-the-box", however, it does not work for everyone. There are various reasons why people experience issues with the native vscode feature. The most common is because VS Code implements a keybinding that is unique to VS Code (example below):
CTRL+CLICK
The Mouse Keybinding can sometimes interfere with an Operating System, or with other software. If you are having an issue getting the default feature to work, not all is lost. Support can be gained through the extension that I have named below.
"jack89ita.open-file-from-path"After the extension is installed, use your mouse to click on the path you wish to navigate to. After you have clicked on the desired path you will use ALT+D to navigate to the path's file.
I personally prefer to alter the keybindings that the extension offers by default