ISESteroids is cool but it not free and…like vscode because there is a dark theme for it and alot of extensions.
got it to work by following these steps:
Configuring PSAppDeployToolkit for Intellisense in Visual Studio Code
- Install the PowerShell Extension for VS Code
- PowerShell - Visual Studio Marketplace
- Set the default language to PowerShell (optional)
- Under Settings (Ctrl+,) find Files: Default Language
- Set this to powershell
- Close Settings
- Download PSAppDeployToolkit
- Releases · PSAppDeployToolkit/PSAppDeployToolkit · GitHub
- Extract the contents to a folder
- Copy the Toolkit folder to a path of your choosing (such as these options)
- $Home\Documents\WindowsPowerShell\Modules
1. $Env:ProgramFiles\WindowsPowerShell\Modules - Mine is copied to: C:\Users\user\Documents\WindowsPowerShell\Modules\AppDeployToolkit
- Convert the script to a module
- In ISE: Open \Documents\WindowsPowerShell\Modules\AppDeployToolkit_AppDeployToolkitMain.ps1_
- File > Save As
1. Change type to PowerShell Script Module
2. Change name to: AppDeployToolkit.psm1 - Delete AppDeployToolkitMain.ps1, it is no longer needed
- Update the PSADT XML
- Edit AppDeployToolkitConfig.xml
- Edit Toolkit_RequireAdmin (line 17) from True to False
- Create a VS Code profile
- Launch VS Code and select the PowerShell Integrated Console terminal then type in notepad $profile
1. If no profile exists, Notepad will ask to create the file, select Yes - Add a line to import the module:
1. Import-Module $Home\Documents\WindowsPowerShell\Modules\AppDeployToolkit - I also add a line to clear the host, as I don’t want to see the import each time.
1. Clear-Host - Save Microsoft.VSCode_profile.ps1 and close Notepad
- Relaunch VS Code
- It will switch to the PowerShell extension, perform the import from the profile, then clear the host.
- You can confirm by running:
get-help copy-file
Credit to Christian Nyhuus for documenting the steps for ISE
https://www.nyhu.us/powershell/psadt/intellisense-psadt-powershell-ise/ Reddit - Dive into anything