New Powershell Script on opening Powershell Studio

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 7 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
roligov
Posts: 2
Last visit: Mon Feb 14, 2022 9:05 am

New Powershell Script on opening Powershell Studio

Post by roligov »

Product, version and build: Sapien PowerShell Studio 2017 5.4.135
32 or 64 bit version of product: 64-bit
Operating system: Windows 10 Enterprise
32 or 64 bit OS: 64-bit
PowerShell Version: 5.1.14393 Revision 693

1. Would it be possible to automatically open a blank "New Powershell Script" window when launching of Powershell Studio 2017?
I ask because I 95% of the time I'm writing scripts and need quick access to a new

2. While on the topic, please allow us to remove the first 12 lines in the "New Powershell Script" window in the paid for version of Powershell Studio 2017. Even if you add it back when I export to .ps1 or compile to exe but I prefer a clean canvas!
<#
.NOTES
===========================================================================
Created with: SAPIEN Technologies, Inc., PowerShell Studio 2017 v5.4.135
Created on: 2/23/2017 5:54 PM
Created by:
Organization:
Filename:
===========================================================================
.DESCRIPTION
A description of the file.
#>

Thanks!
Last edited by roligov on Thu Feb 23, 2017 8:37 am, edited 1 time in total.
DevinL
Posts: 1098
Last visit: Tue Jun 06, 2017 9:15 am

Re: New Powershell Script on opening Powershell Studio

Post by DevinL »

Thank you for the suggestion, Roligov, I've filed an internal request to open to a blank script. When we have more information we'll be sure to post it here.

As for your second request, the ps1 file located in C:\ProgramData\SAPIEN\PowerShell Studio 2017\Templates\FileTypes\ is the template for new scripts. If you remove the lines from that file then you'll have a clean canvas on each new script.
DevinL
SAPIEN Technologies, Inc.
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: New Powershell Script on opening Powershell Studio

Post by davidc »

Use Ribbon->File->Create Template to create your own custom templates. Please refer to the following blog post:

https://www.sapien.com/blog/2014/11/19/ ... r-scripts/
David
SAPIEN Technologies, Inc.
This topic is 7 years and 1 month old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked