Visual Studio Code Setup for PowerShell Development (SharePoint)

Published on
1 mins read
--- views

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
PS: notepad $profile
  • Add import module command for file on step 1 and save document
# SharePoint 2016 Stub
Import-Module C:\Scripts\Microsoft.SharePoint.PowerShell.psm1
  • Restart VSCODE

When all operations completed, intellisense will work fine:

SP-stubs for visual studio code