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