Open jasontaylordev opened 2 years ago
@jasontaylordev You are correct, the dollar symbol ($) is used to mark where the cursor is placed when the file is opened after creation. The position of the first $ is returned from the function and used after the file is opened in the editor.
If you're wondering how to keep a dollar sign in your template, such as when you have an interpolated string in your template, you just need to double them up so you have two dollar signs in the template, or include a single dollar sign to specify the cursor position somewhere before the interpolated string.
When creating a custom template I don't understand how the dollar ($) symbol is used. I thought perhaps it was to specify the cursor position or preserve whitespace - but couldn't confirm that behaviour.
Please can someone advise? Thanks. 😀