Create switch_snippet