Page 1 of 1

Transitioning from VS Code - Trial

Posted: Tue May 11, 2021 12:58 pm
by wsmelton
I've come from using VS Code since 2015 (well before 1.0 was released). I'm used to that workflow and mainly the workspace folder structure being whatever I chose for the module. My primary question is around the Projects in PS Studio.

GitHub a common pattern for repositories with PowerShell modules is having the main code (what I think would be the PS Project) in a src and then any other supporting files (e.g. Pester tests, build scripts, helper files, etc.) would be in a parent folder at the root of the repository. An example of this would be a module I manage for work on GitHub: thycotic-ps/thycotic.secretserver

I have not been able to find anything specific on what process there is for migrating or importing a repository with this type of folder structure into a PS Studio project so I can work on those files (both the module and Pester files).

- Is this beyond what PS Studio can handle, or how what it was designed, structure wise to handle?

- Is there something I may not be aware of that will allow me to migrate to using PS Studio over VS Code with similar integrations for Git, Pester and PS itself?

My day-to-day responsibility with my current role is simply writing PowerShell. I generally live with the nuances that VS Code has but the past few weeks the desire to move to something more stable is growing. I used PS Studio years back for a small project and found it usable but since I've lived in VS Code for so long now I understand that moving cold turkey to a new editor will take time to get used to. However, before expensing the cost of the license for PS Studio I wanted to make sure what workflow may not exists in PS Studio and whether I will be able to live with out it. (I do not do much UI writing for PowerShell, strictly scripting and module-based work.)



Product, version and build: PowerShell Studio 2021
Operating system: Windows 10
PowerShell version(s): 5.1, 7.1.3
32-bit version of software?

Re: Transitioning from VS Code - Trial

Posted: Mon May 17, 2021 7:23 am
by brittneyr
This should be doable with as a project in PowerShell Studio. The main thing to know and set is the build setting per file. This can be found in the the Properties pane when the file is selected:
SPS_Properties_BuildSettings.png
SPS_Properties_BuildSettings.png (13.24 KiB) Viewed 6079 times
To have the structure you are looking for, the files build setting needs to be set to Content to retain the file when build it and not merge it into another.

As for your other question, there is no specific process of migrating to PS Studio from VS Code. Can you be more specific to what you are looking for?