Author Posts

December 8, 2017 at 5:41 pm

Moved to new machine, and instead of using the ISE, I've installed VSC with the Powershell extension. Three questions:
1. Is the integrated Powershell command line the same as a session started from the PowerShell command?
2. There is no Intellisense on the PS command line with VSC. Is this normal? Intellisense works great within the editor.
Thanks. — L

December 8, 2017 at 6:25 pm

1- Yes.
2- Since it's really the local shell that is loaded there, you get what you'd get in the normal powershell shell. You can type the line in the editor, using intellisense, and run that line using F8 though.

December 8, 2017 at 6:29 pm

Thanks, Sylvain!

December 8, 2017 at 6:45 pm

1. I got the impression that the terminal was similar to the one in the ISE. It can't always be trusted to give the same results as the console.

2. To get the Intellisense working correcly, you need to configure the settings file and force it to load the Powershell Terminal. This post helps with some of that: http://mikefrobbins.com/2016/08/11/use-the-powershell-console-from-within-visual-studio-code/

December 9, 2017 at 4:56 am

Note, VSC will not give you all that the ISE provides.
The ISE will not give you all that VSC provides.

Add the PowerShell Extension.
Suggested settings to your VSC user settings for PowerShell Development.

"extensions.autoUpdate": true,
"files.defaultLanguage": "powershell",
"powershell.scriptAnalysis.enable": true,
"powershell.startAutomatically": true,
"powershell.integratedConsole.focusConsoleOnExecute": false,
"powershell.enableProfileLoading": true,
"powershell.developer.editorServicesLogLevel": "Verbose",
"powershell.codeFormatting.openBraceOnSameLine": false,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.formatOnPaste": true,
"editor.mouseWheelZoom": true,
"terminal.integrated.shell.windows": "C:\\WINDOWS\\Sysnative\\WindowsPowerShell\\v1.0\\powershell.exe",
"window.zoomLevel": 0,
"workbench.colorTheme": "Monokai Dimmed",
"workbench.iconTheme": "vscode-icons",
"workbench.welcome.enabled": true,
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": false,
"suppressCommitNotFoundWarning": false,
"suppressFileNotUnderSourceControlWarning": false,
"suppressGitVersionWarning": false,
"suppressLineUncommittedWarning": false,
"suppressNoRepositoryWarning": false,
"suppressUpdateNotice": true,
"suppressWelcomeNotice": false