Editing Function Snippets not retaining saved changes

Use this forum to ask questions after your subscription maintenance expires or before you buy. Need information on licensing or pricing? Questions about a trial version? This is the right place for you. No scripting questions, please.
Forum rules
DO NOT POST SUBSCRIPTION NUMBERS, LICENSE KEYS OR ANY OTHER LICENSING INFORMATION IN THIS FORUM.
Only the original author and our tech personnel can reply to a topic that is created in this forum. If you find a topic that relates to an issue you are having, please create a new topic and reference the other in your post.
This topic is 7 years and 2 months 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.
User avatar
ErnieB
Posts: 56
Last visit: Mon Dec 19, 2022 2:09 am

Editing Function Snippets not retaining saved changes

Post by ErnieB »

Hello

When I edit a pre-existing snippet such as the Function snipped (e.g. right click in Snippet explorer when chose edit), I make my changes then save and it asks me if I want to overwrite the current file and I say yes. However when I use the snippet the changes are not there, also when I go back and edit it again the changes are also not there.

I have tried exiting and restarting PowerShell Studio and doing the same again but running the program with Administrator privileges, however this does not work either

Please assist as there are several snippets I need to edit to work the way I work

Thanks
Ernest
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Editing Function Snippets not retaining saved changes

Post by davidc »

Hello Ernest,

The preset snippets are purposely set to ReadOnly because they are overwritten when you update the application.

If you want to override an existing snippet, simply drag the snippet from the Preset folder to the User folder and it will automatically create a copy. Then proceed to edit the new snippet.

The User snippet should take priority over the Preset snippet and will persist after an update.
David
SAPIEN Technologies, Inc.
User avatar
ErnieB
Posts: 56
Last visit: Mon Dec 19, 2022 2:09 am

Re: Editing Function Snippets not retaining saved changes

Post by ErnieB »

Thanks again David,

I will give it a go,

One separate note I am now taking to my boss about buying a license/es, it is an inexpensive product and as I explained to him just using it to write one decent sized script will pay for itself in productivity saving

fingers crossed :)

Ernest
User avatar
ErnieB
Posts: 56
Last visit: Mon Dec 19, 2022 2:09 am

Re: Editing Function Snippets not retaining saved changes

Post by ErnieB »

Thank you Dave, I have it now

Also my boss is placing and order for a 2 licences

Thanks
Ernest
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Re: Editing Function Snippets not retaining saved changes

Post by davidc »

I'm glad to hear it. Welcome to the SAPIEN community :)
David
SAPIEN Technologies, Inc.
This topic is 7 years and 2 months 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.