skip to Main Content

I cannot open any new terminals on my VS Code 1.82.2 on Windows 10. Every time I click "New terminal", it’ll quickly show the following error message before closing:

-noexit : The term '-noexit' is not recognized as the name of a cmdlet, function, script file, or operable program.
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ -noexit -command try { . c:UsersFINDarksideAppDataLocalPrograms ...
+ ~~~~~~~
+ CategoryInfo          : ObjectNotFound: (-noexit:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException

I’ve tried reinstalling VS Code, disabling all plugins, clearing all custom settings and deleting Code/User folder completely but none of these helped. Any ideas?

2

Answers


  1. Chosen as BEST ANSWER

    Finally figured out how to get powershell working again. All I had to do was to disable terminal.integrated.shellIntegration.enabled. It caused all default terminal profile to crash even for pwsh which it is supposed to support.


  2. {
      "terminal.integrated.profiles.windows": {
        "Custom Init": {
          "path": "pwsh.exe",
          "args": [
             "-file",
             "${env:APPDATA}\PowerShell\custom-init.ps1"
          ]
        }
      },
      "terminal.integrated.defaultProfile.windows": "Custom Init"
    }
    

    Try setting this above code as your Terminal profile.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search