Which is a valid way to create a code snippet?
With the code selected, click the + button in the Snippets view
Click Source -> Snippets -> Create Snippet
Drag the code into the snippets view
Right-click the selected code and select Add to Snippets