Download: Visual Studio Marketplace
This Visual Studio extension adds advanced path copying commands. Available commands:
-
Copy Relative Path - Get a relative path to a selected document. Example: transform
D:\notepad-plus-plus\PowerEditor\src\resource.h
→PowerEditor/src/resource.h
. -
Copy URL - Append a relative path to a base URL specified in preferences. This might be used to get a GitHub link to the selected document in Visual Studio. Example: transform
D:\notepad-plus-plus\PowerEditor\src\resource.h
→ https://github.com/notepad-plus-plus/notepad-plus-plus/blob/master/PowerEditor/src/resource.h. -
Copy Current Line URL - Same as Copy URL but link to a specific line. Example: https://github.com/vim/vim/blob/master/Makefile#L100
-
Copy Include - Get a relative path while removing directories specified in Include Directories option. Useful for C/C++ projects (
#include
directive).
Extension commands are available in:
- Context menu for a document tab
- Context menu for an item in the Solution Explorer:
- Context menu in the editor
Settings can be customized in Tools > Options > Copy Path Extension: