Copy Path and LineInstantly copy a file's path and line number to the clipboard — right from the editor context menu. FeaturesRight-click anywhere in an open source file to access two new commands: Copy full path and line number — copies the absolute path and current line: C:\Dev\MyProject\src\Foo.cs (Line: 42) Copy relative path and line number — copies the path relative to the open solution directory: src\Foo.cs (Line: 42)
UsageRight-click in any open source file → select Copy full path and line number or Copy relative path and line number. ConfigurationOpen Tools → Options → Copy Path and Line → General:
Keyboard ShortcutsBind either command via Tools → Options → Environment → Keyboard:
Supported Versions
|