/

AI & LLM

Jun 17, 2022

Jun 17, 2022

Pieces User Stories: Auto-complete boilerplate code

Auto-complete is the ultimate workflow upgrade for Brandon, who doesn't have time to waste re-typing commonly used code snippets.

An illustration of Brandon.
An illustration of Brandon.
An illustration of Brandon.

From developing APIs to streamlining internal ops to building micro-utilities, Full Stack Engineer Brandon’s work is different every day. The ways he uses Pieces are similarly varied.

One feature that he started using recently is auto-complete. “Auto-complete was pretty useful on some of the boilerplate code that I use in my C++ and CMake projects, where I copy certain things a lot and there's not really a good way to abstract it out. So, Pieces auto-completed it and nearly took care of everything for me.”

A code snippet in Pieces.

The snippet Brandon uses across all of his C++ projects to bring in Catch2, a popular open-source testing framework.

Code saved in the Pieces desktop app.

A lot of developers prefer writing code over the more “menial” chores like documenting their code and writing unit tests. Unit tests are extraordinarily powerful when combined with test automation + CI/CD systems, and go a long way to improve software stability. But the caveat is that you have to actually write your tests! “I save these two snippets in Pieces so I can use auto-complete to write tests faster and sleep better at night knowing I’ve tested the code I put into production.”

A testing boilerplate snippet.

Then, onto the next task! “A typical challenge for budding JavaScript developers is how to perform seemingly simple tasks, like center a div. There are many different ways to do it, and I may not be quite sure which one will work out for the structure that I have, but I saved a few snippets from the web to my Pieces library, tried them out in my editor using auto-complete, and ended up finding something that worked. The solution wasn’t exactly from those snippets I saved, but Pieces made it easier to quickly try a bunch of approaches.”

Pieces is always there when he’s going into uncomfortable territory. “If I need to figure out how to do something in a language or framework that I don't know, I’ll find, like, three different solutions to do something, but I'm not quite sure which one will work, so I save them all to Pieces. I’ll come back later and try them out locally, but I can keep researching really efficiently and then trying things out really efficiently.”

SHARE

Pieces User Stories: Auto-complete boilerplate code

Recent

Sep 15, 2025

Sep 15, 2025

Why developers need AI that actually gets Their context

Tired of re-explaining your codebase to AI every week? Discover why developers need context-aware AI that remembers your workflow. Learn how Workstream Activity, Sources, and Time Ranges in Pieces give you control, continuity, and a searchable memory for your entire dev process.

Tired of re-explaining your codebase to AI every week? Discover why developers need context-aware AI that remembers your workflow. Learn how Workstream Activity, Sources, and Time Ranges in Pieces give you control, continuity, and a searchable memory for your entire dev process.

Sep 11, 2025

Sep 11, 2025

AI memory explained: what Perplexity, ChatGPT, Pieces, and Claude remember (and forget)

Discover the different types of AI memory, how they work, key use cases, and the best prompting approaches to get accurate, context-aware responses

Discover the different types of AI memory, how they work, key use cases, and the best prompting approaches to get accurate, context-aware responses

Pieces IDE plugins
Pieces IDE plugins
Pieces IDE plugins

Sep 5, 2025

Sep 5, 2025

From Browser to IDE: how to carry context seamlessly with Pieces

iscover how Pieces helps developers carry context seamlessly across browser, IDE, CLI, and desktop. From snippet capture to Copilot-powered reuse, learn how to eliminate lost time, preserve continuity, and stay in flow throughout your workflow.

iscover how Pieces helps developers carry context seamlessly across browser, IDE, CLI, and desktop. From snippet capture to Copilot-powered reuse, learn how to eliminate lost time, preserve continuity, and stay in flow throughout your workflow.

our newsletter

Sign up for The Pieces Post

Check out our monthly newsletter for curated tips & tricks, product updates, industry insights and more.

our newsletter

Sign up for The Pieces Post

Check out our monthly newsletter for curated tips & tricks, product updates, industry insights and more.

our newsletter

Sign up for The Pieces Post

Check out our monthly newsletter for curated tips & tricks, product updates, industry insights and more.