Question: Which is a valid way to create a code snippet?

  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: The correct answer of the above question is Option A:Right-click the selected code and select Add to Snippets