1. Install the Snippet designer plugin:
Search for Snippet designer, click Install, I have already installed it here.
2. Create a file:
- Wrapped in $$ is the cursor position.
- $end$ is a reserved character, indicating where the cursor will stay at the end.
Finally, just save it in one place and wait for the next import.
3. Import the code snippet: