Figure 2-23.
Activating a code snippet
Once you find the snippet you want to activate, press the Tab key twice. This will autocomplete
the entire snippet and leave a set of
placeholders that you can fill in to complete the snippet. If you
press the Tab key, you can cycle between each placeholder and fill in the gaps (press the Esc key to
exit the code snippet edit mode).
If you were to right-click and select the Surround With menu, you would likewise be presented
with a list of options. Recall that when using Surround With snippets you typically first select a block
of code statements to represent what should be used to wrap them (try/catch block, etc.). Be sure
to take time to explore these predefined code expansion templates, as they can radically speed up
the development process.
Do'stlaringiz bilan baham: