PowerShell

About

PowerShell is a task automation and configuration management framework from Microsoft, consisting of a command-line shell and associated scripting language.

Installation

Change enable from False to True in the powershell section (cf module installation).

vscode-anywhere:
    powershell:
        enabled: True

You can also take a look at the VSCode-Anywhere PowerShell module configuration.

Requirements

No requirements.

VSCode

VSCode extensions

ms-vscode.PowerShell

This extension provides rich PowerShell language support for Visual Studio Code.

Now you can write and debug PowerShell scripts using the excellent IDE-like interface that Visual Studio Code provides.

VSCode settings

Global settings

{
  "dash.languageIdToDocsetMap.powershell": [
    "posh"
  ]
}

Windows settings

{
  "powershell.powerShellDefaultVersion": "Scoop PowerShell",
  "powershell.powerShellAdditionalExePaths": [
    {
      "exePath": "${env:SystemRoot}\\system32\\WindowsPowerShell\\v1.0\\powershell.exe",
      "versionName": "Windows PowerShell"
    },
    {
      "exePath": "C:\\VSCode-Anywhere\\apps\\scoop\\apps\\pwsh\\current\\pwsh.exe",
      "versionName": "Scoop PowerShell"
    }
  ]
}

Assuming you have installed in the default directory C:\VSCode-Anywhere.

Linux settings

{
  "powershell.powerShellDefaultVersion": "Nix PowerShell",
  "powershell.powerShellAdditionalExePaths": [
    {
      "exePath": "/home/myuser/VSCode-Anywhere/apps/vscode-anywhere/home/.nix-profile/bin/pwsh",
      "versionName": "Nix PowerShell"
    }
  ]
}

Assuming you have installed in the directory /home/myuser/VSCode-Anywhere.

VSCode keybindings

No keybindings.

Software

Windows software

scoop

Linux software

nix

MacOS software

brew

Documentation

VSCode-Anywhere

Environment

No environment.

Specific settings

No specific settings.

Last updated