Page 1 of 1

Where to find starter templates

Posted: Fri Mar 01, 2019 12:41 pm
by robmo
Product, version and build: 7.4.125.0
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 1809 Enterprise
32 or 64 bit OS: 64-bit

Hi,

When you click the New File button on the window title bar, you are prompted to select the type of template you would like to use. I set mine to PowerShell but I would like to change how the template is written. Can this be modified by the user and where is it located?

Thank you!
Rob

Re: Where to find starter templates

Posted: Fri Mar 01, 2019 1:27 pm
by Olga_B

Re: Where to find starter templates

Posted: Fri Mar 01, 2019 1:38 pm
by davidc
You can use the File->Save As Template... command to create new templates. It will prompt you to save to the correct template location.

Re: Where to find starter templates

Posted: Mon Mar 04, 2019 11:11 am
by robmo
I was able to find my starter templates here:
C:\ProgramData\SAPIEN\PrimalScript 2019\Templates\File Templates

I tried editing PowerShell.ps1 and created a new file. I found that it was still using the out-of-box format. That may be the case because I had already chosen a template which was written to Default.ps1 (C:\ProgramData\SAPIEN\PrimalScript 2019\Templates). After editing Default.ps1, I am now seeing my preferred format when creating new files.

Consider this resolved. Thank you for your help!