Code snippet is a block of code that can be saved and further used in creating templates in Salesforce Marketing Cloud. HTML, AMPscript code can be saved as code snippet.
Use code snippets in Marketing Cloud Content Builder to save reusable bits of HTML, AMPscript, and Guide Template Language. Insert snippets when editing HTML via the Code Snippets toolbar selector, or by typing the Customer Key value for the snippet followed by the Tab key.