1.Right-click the selected code and select Add to Snippets
2.Drag the code into the snippets view
3.Click Source -> Snippets -> Create Snippet
4.With the code selected, click the + button in the Snippets view
Answer:1