Visual Studio has a large number of “canned” blocks of code that can be quickly added to a project using a shortcut key. These are call Snippets. Turns out that SharePoint Designer has them too. But only a few…
Inserting a Snippet:
Click in the code window where you want the Snippet and press Ctrl-Enter (or click Edit, IntelliSense, List Code Snippets):
Creating your own Snippets:
You can create your own Snippets either by using a shortcut or by going to Tools and Page Editor Options.
- Select existing text you would like to use for a Snippet
- Right-click and select Create Code Snippet
Or go to Tools, Page Editor Options: