Code snippets are effectively small pieces of text (hence snippets)
which you can use over and over again with different documents
You
can create code snippets from pieces of code in the editor, simply right
click on the mouse and click on the move selected text to snippets.
You will then see the following screen, fill in a snippet name and click
on Generate snippet, the snippet will then be created in the snippet
directory.
When you select code snippet from the menu bar you can see the snippet you
just generated. You can re-use this snippet whenever you want.
|