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
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 forpwsh
which it is supposed to support.Try setting this above code as your Terminal profile.