Error:

Solution:

  1. In settings community plugins Templater:
  2. Add a templater hotkey in “Template hotkeys”
  3. Go to hotkeys and add a hotkey
  4. Now, if you create a new file, you can use the hot key to run that code block quickly

Documentation:

Software:

Obsidian Templater