Transition Questions - ISE to VSCode

This topic contains 4 replies, has 4 voices, and was last updated by  postanote 4 months, 2 weeks ago.

  • Author
    Posts
  • #87937

    Larry Keyes
    Participant

    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

  • #87964

    Syl
    Participant

    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.

  • #87967

    Larry Keyes
    Participant

    Thanks, Sylvain!

  • #87970

    Des Davies
    Participant

    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/

  • #88121

    postanote
    Participant

    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

You must be logged in to reply to this topic.