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.
Locked
User avatar
roligov
Posts: 2
Joined: Mon Dec 01, 2014 8:03 am

New Powershell Script on opening Powershell Studio

Post by roligov » Thu Feb 23, 2017 9:18 am

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 9:37 am, edited 1 time in total.

User avatar
DevinL
Site Admin
Posts: 1098
Joined: Mon Aug 17, 2015 2:25 pm

Re: New Powershell Script on opening Powershell Studio

Post by DevinL » Thu Feb 23, 2017 9:32 am

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
Joined: Thu Aug 18, 2011 4:56 am

Re: New Powershell Script on opening Powershell Studio

Post by davidc » Thu Feb 23, 2017 11:04 am

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.

Locked