Pieces can intelligently identify and save snippets based on re-use patterns in your JetBrains workflow.
Whenever Pieces saves a snippet, you'll see a "Saved a Piece!" confirmation in the bottom right of your screen. Your snippet is now saved in Pieces with a default name and automatically classified by language.
To opt-out of Suggested Save, go to Preferences > Tools > Pieces and click on Suggested Save.