search code snippets

Search code snippets

Find everything you need with the Pieces blazingly fast code search engine. Query using natural language, or search for code, tags, or other enrichments. All running offline.

Try Pieces for free

Trusted by individuals working for

Find the snippets you need

Pieces Global Search is an intuitive and lightning-fast way to search all your saved snippets. Find snippets using natural language using whole sentences. Query enrichments to search by code, tags and other semantics. Search with a code snippet to find related snippets.

Different ways to search

Pieces supports multiple ways to search, depending on your preferences. Use full text search to find exact matches, or Neural Code Search to search using the meaning of the code. Use a blended search to get the best of both worlds. Pieces searches as you type, allowing you to find what you need often before you finish typing the entire search query.

Search snippets where you are

Search for snippets in all the Pieces plugins. No matter where you use Pieces, you can quickly find the code snippets you need by searching the same way where you are.

  • You need to try pieces out if you write code and feel that you need a true second brain, where you can basically store any function or code you've ever written and can use it again and again and again.

    Henry Rausch

    Quality Engineer @ FIC America Corp

  • Everyone's got a copilot. You're inverted, you've rotated the whole thing. It's not a vertical copilot, it's a horizontal one.

    Scott Hanselman

    VP of Developer Community @ Microsoft

  • Pieces Copilot has become much more efficient for any developer to ask any question and get a particular result. The LLMs in Pieces are sensitive to programming, so I think that gives better results.

    Ayush Kumar

    Data Analyst @ Accenture

  • I was playing around with live context, and just wow, I’m speechless. I mean, this is not just a coding assistant anymore, it’s a mentor that knows literally everything, a guardian angel.

    Domagoj Lalk

    CTO & Co-Founder @ Sparroww Inc.

1 million +

saved materials

17 million +

associated points of context

5 million +

copilot messages

Dive into the Pieces technical documentation to explore everything our platform offers

Explore

Learn how to optimize your workflow with Long-Term Memory, on-device AI, and switching between LLM

Find solutions to common issues

Access additional tools, SDKs, and APIs for advanced integration

DOWNLOAD FOR FREE

Quickly find the code snippets you need

DOWNLOAD FOR FREE

Quickly find the code snippets you need

DOWNLOAD FOR FREE

Quickly find the code snippets you need

Frequently asked questions

Are snippets searched in the cloud?

Pieces supports nearly 40 programming languages, including popular ones like Python, Java, JavaScript, C++, and Swift, as well as specialized languages such as Haskell, Erlang, and Elixir. Our list also covers web development staples like HTML, CSS, and Markdown, along with data-focused languages like SQL, R, and MATLAB. We are continually expanding our language support, so if there’s a specific language you’d like to see added, feel free to submit a feature request.

Are snippets searched in the cloud?

Pieces supports nearly 40 programming languages, including popular ones like Python, Java, JavaScript, C++, and Swift, as well as specialized languages such as Haskell, Erlang, and Elixir. Our list also covers web development staples like HTML, CSS, and Markdown, along with data-focused languages like SQL, R, and MATLAB. We are continually expanding our language support, so if there’s a specific language you’d like to see added, feel free to submit a feature request.

Are snippets searched in the cloud?

Pieces supports nearly 40 programming languages, including popular ones like Python, Java, JavaScript, C++, and Swift, as well as specialized languages such as Haskell, Erlang, and Elixir. Our list also covers web development staples like HTML, CSS, and Markdown, along with data-focused languages like SQL, R, and MATLAB. We are continually expanding our language support, so if there’s a specific language you’d like to see added, feel free to submit a feature request.

Can I search for all snippets related to a project?

Can I search for all snippets related to a project?

Can I search for all snippets related to a project?

How can I change the search mode?

How can I change the search mode?

How can I change the search mode?