A Visual Studio 2022 extension that allows you to right-click on any method, property, class, or member and copy its fully qualified name to the clipboard. This was built out of frustration from not being able to easily get the fully qualified names of members in large projects.
It gets old after the 100th in a row that you are trying to update a wiki article or a long commit message.
- Copy Fully Qualified Name: Copies
Namespace.Class.Memberformat - Copy Qualified Name (without namespace): Copies
Class.Memberformat - Works with C# and VB.NET
- Keyboard shortcut:
Ctrl+Shift+Alt+Q
- Build the solution in Visual Studio 2022
- Double-click the generated
.vsixfile inbin\Debugorbin\Release - Restart Visual Studio
- Place your cursor on any method, property, class, or member
- Right-click to open the context menu
- Select "Copy Fully Qualified Name" or "Copy Qualified Name (without namespace)"
- The name is now in your clipboard!
If your cursor is on HelloWorld in:
Namespace foo
Public Class bar
Public Sub HelloWorld()
End Sub
End Class
End Namespace- Copy Fully Qualified Name ?
foo.bar.HelloWorld - Copy Qualified Name (without namespace) ?
bar.HelloWorld
- Visual Studio 2022 (17.0 or later)
- Visual Studio extension development workload
- .NET Framework 4.8 SDK
git clone https://github.com/yourusername/CopyQualifiedName.git
cd CopyQualifiedName
dotnet restore
dotnet buildMIT License - See LICENSE.txt