Skip to content
| Marketplace
Sign in
Visual Studio>Tools>CopyLineNumber
CopyLineNumber

CopyLineNumber

Harry Park

|
76 installs
| (2) | Free
CopyLineNumber provides the ability to copy the current file name and line number to clipboard with one click. This is very useful when sharing references with other developers during code debugging, reviews, and collaboration.
Download

CopyLineNumber

CopyLineNumber is a Visual Studio extension that copies the file name and the line number of the cursor in the currently active document to the clipboard.

Features

  • Copies the file name and the line number of the cursor in the currently active document to the clipboard
  • Example: C:\Users\user\source\repos\CopyLineNumber\CopyLineNumber\Command1.cs:23
  • Filename can be relative path from the solution. (UseRelativePath option)
  • Example: CopyLineNumber\Command1.cs:23
  • If a selection exists, also copy the content to the clipboard.
  • Example:
CopyLineNumberVSIX\CopyLineNumber\Command1.cs:(108-115)
        private void StartNotepad(object sender, EventArgs e)
        {
            ThreadHelper.ThrowIfNotOnUIThread();

            Process proc = new Process();
            proc.StartInfo.FileName = "notepad.exe";
            proc.Start();
        }

Usage

  1. Install the CopyLineNumber extension in Visual Studio.
  2. Move the cursor to the desired position in the active document.
  3. Execute the Copy Line Number command from the Tools menu to copy the file name and line number to the clipboard.

Contribution

Contributions are welcome! If you find any bugs or have suggestions for improvements, please create an issue.

License

This project is licensed under the MIT License. For more details, see the LICENSE file.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft