code snippets allow the developer to add a complex coding structure by typing a minimal amount of text. code snippets can only be used in a valid context (statements snippets are only offered when you can insert statements).