First of all create a module by scaffold command in your custom_addons folder

Give name snippet [For reference type in terminal: ./odoo-bin scaffold snippet custom_addons)

Now you should see a folder structure in your custom_addons folder like this.