Instruction how to prepare visual studio code for work with powershell scripts (for sharepoint framework).
Install and download modules from here – [link].
Follow this instructions:
- Download ps-module (SP2016 link, SP2013 link) and save that somewhere on your hard drive (in dir C:\Scripts, for example)
- Edit your VSCODE profile
1 |
PS: notepad $profile |
- Add import module command for file on step 1 and save document
1 2 |
# SharePoint 2016 Stub Import-Module "C:\Scripts\Microsoft.SharePoint.PowerShell.psm1" |
- Restart VSCODE
When all operations completed, intellisense will work fine: