Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>WhichNugetNew to Visual Studio Code? Get it now.
WhichNuget

WhichNuget

Rain Hu

|
3 installs
| (0) | Free
Find which NuGet package contains the method you need
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

WhichNuget

Find which NuGet package contains the method you need! A VS Code extension that helps .NET developers quickly discover NuGet packages by searching for method names.

Features

  • 🔍 Search by Method Name: Enter any method name to find NuGet packages that contain it
  • 🖱️ Context Menu Search: Right-click on selected text to search for packages
  • 📦 Smart Search: Searches across method names, class names, and namespaces
  • 💻 Beautiful Results: Clean, organized display of search results with package information
  • ⚡ Quick Actions: Copy install commands or execute them directly in the terminal
  • 🎯 Sidebar Integration: Dedicated sidebar panel for quick access to search functionality
  • 🔄 Real-time Search: Search bar in results page for instant new searches without leaving the view

Usage

Search via Sidebar

  1. Click on the Which NuGet icon in the Activity Bar (left sidebar)
  2. Enter a method name in the search box
  3. Press Enter or click "Search NuGet Packages"
  4. View results in the main panel

Search by Command Palette

  1. Open Command Palette (Ctrl+Shift+P or Cmd+Shift+P)
  2. Type "Open Which NuGet" to open the sidebar
  3. Or type "WhichNuget: Search by Method Name" for direct search
  4. Enter the method name you're looking for
  5. View results in the results panel

Search Selected Text

  1. Select a method name in your code
  2. Right-click to open context menu
  3. Choose "WhichNuget: Search for Selected Method"
  4. View results in the results panel

Real-time Search in Results

  1. After viewing search results, use the search bar at the top of the results page
  2. Enter a new method name and press Enter or click Search
  3. Results update instantly without closing the view

Install Packages

From the search results, you can:

  • 📋 Copy Install Command: Copy the dotnet add package command to clipboard
  • ⬇️ Install Package: Auto-detect project type and install
  • ▶️ Execute in Terminal: Run the install command directly in VS Code terminal

Example Searches

  • GetAsync - Find HTTP client packages
  • Parse - Find parsing libraries
  • ToJson - Find JSON serialization packages
  • SendAsync - Find messaging/HTTP packages
  • LogInformation - Find logging packages

Requirements

  • VS Code 1.74.0 or higher
  • .NET SDK (for package installation features)

Extension Settings

This extension contributes the following settings:

  • whichnuget.maxResults: Maximum number of search results to display (default: 20)

Screenshots

Search Results

The extension displays package information including:

  • Package name and version
  • Description
  • Download count
  • Authors
  • Tags
  • Verification status

Quick Actions

Each package has three action buttons for easy installation.

Known Issues

  • Search results are limited to packages indexed by NuGet.org
  • Some packages may not be found if they don't have proper metadata

Release Notes

0.0.2

New features:

  • Added dedicated sidebar panel in VS Code Activity Bar
  • Added real-time search bar in results page for quick new searches
  • Added "Open Which NuGet" command in Command Palette
  • Improved user experience with persistent search interface

0.0.1

Initial release of WhichNuget:

  • Basic method search functionality
  • Context menu integration
  • Terminal execution of install commands
  • Beautiful results display

Contributing

Found a bug or have a feature request? Please open an issue on GitHub.

License

MIT


Enjoy finding your NuGet packages faster! 🚀

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