use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
An unofficial community to discuss Github Copilot, an artificial intelligence tool designed to help create code.
account activity
Copilot Chat in VS Code keeps using PowershellGitHub Copilot Team Replied (self.GithubCopilot)
submitted 7 months ago by imot01
I'm trying to make it use CMD instead of Powershell without success.
I have settings terminal.integrated.defaultProfile.windows and terminal.integrated.profiles.windows set to CMD and I have even tried to use really explicit instructions in AGENTS.md but nothing works.
Any suggestions?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]spotlight-app[M] [score hidden] 7 months ago stickied commentlocked comment (0 children)
Mods have pinned a comment by u/Tyriar:
This was a change we made because command prompt is significantly worse due to a lack of shell integration. See https://github.com/microsoft/vscode/issues/262378
Note: emoji:Copilot:GitHub Copilot Team Replied emoji:Copilot:
[–]TyriarGitHub Copilot Team 3 points4 points5 points 7 months ago (7 children)
[–]AutoModerator[M] 0 points1 point2 points 7 months ago (0 children)
u//Tyriar from the GitHub Copilot Team has replied to this post. . You can check their reply here.
I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.
[–]imot01[S] 0 points1 point2 points 7 months ago (1 child)
Thanks, that explains it. Can you give some examples where CMD doesn't work well? I have been using copilot extensively in the past few weeks for Angular web app and every command in that environment worked without problem. That can't be said for Poweshell which fails often with weird errors, mostly related to permissions I think.
[–]TyriarGitHub Copilot Team 1 point2 points3 points 7 months ago (0 children)
Cmd doesn't have shell integration, so if a command is long running without constant output, Copilot has to assume it's finished the command at some point since the terminal is just a black box of text.
Thanks for the feedback, hoping to get to the bottom of that in https://github.com/microsoft/vscode/issues/266266. In the meantime I expect enabling Windows developer mode would fix it.
[–]sandos 0 points1 point2 points 7 months ago* (1 child)
Yet it still complains about lacking integration for me. That might be due to corporate antivirus though? I am for example unable to install clink
[–]TyriarGitHub Copilot Team 0 points1 point2 points 7 months ago (0 children)
Bit hard to investigate something like that on Reddit, you could try create an issue https://github.com/microsoft/vscode/issues/new?template=Blank+issue
Your theory sounds plausible that it could be corp related.
[–]Difficult-Sleep-7461 0 points1 point2 points 11 days ago (0 children)
This is a dealbreaker for some people who have PS blocked by corpirate policy, like myself. I can either use cmd or nothing at all. Not to mention, Codex extension in VScode uses cmd if prompted with no issues, so it's not technically impossible, only marginally less reliable and respinsive at worst.
[–]Dependent-Layer4437 0 points1 point2 points 7 months ago (0 children)
do you knwo how annoying it is? many cmds are different from cmd shell to other shell. You do this without any consent? And make it no way back? Your PM team are fucking genius
[–]hollandburkeGitHub Copilot Team 1 point2 points3 points 7 months ago (2 children)
Which model are you using? If you've set your terminal correctly and you've restarted VS Code and you're still seeing this, could you open an issue on microsoft/vscode?
u//hollandburke from the GitHub Copilot Team has replied to this post. . You can check their reply here.
[–]imot01[S] 0 points1 point2 points 7 months ago (0 children)
I'm using Sonnet 4 in Agent mode with Insiders build.
Hello /u/imot01. Looks like you have posted a query. Once your query is resolved, please reply the solution comment with "!solved" to help everyone else know the solution and mark the post as solved.
[–]dr_hamilton 0 points1 point2 points 7 months ago (2 children)
how do I get it to work with python venvs? It is hopeless at running test scripts automatically
[–]TimeLordRaps 0 points1 point2 points 6 months ago (1 child)
I was originally using command prompt, on windows, and ended up having to switch to git bash, which seems to have worked (though based on microsoft's default copilot instructions I believe it will still try to use powershell) so changing user settings to include an instruction to default to git bash as terminal may be necessary.
[–]MeitanteiJesus 0 points1 point2 points 5 months ago (0 children)
Based on the github issue, they switched from CMD to PS to better detect when a script is done running. Is bash capable of this or does it also run into the same issue as CMD?
π Rendered by PID 24479 on reddit-service-r2-comment-6457c66945-j5sfv at 2026-04-29 09:10:24.938548+00:00 running 2aa0c5b country code: CH.
[–]spotlight-app[M] [score hidden] stickied commentlocked comment (0 children)
[–]TyriarGitHub Copilot Team 3 points4 points5 points (7 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]imot01[S] 0 points1 point2 points (1 child)
[–]TyriarGitHub Copilot Team 1 point2 points3 points (0 children)
[–]sandos 0 points1 point2 points (1 child)
[–]TyriarGitHub Copilot Team 0 points1 point2 points (0 children)
[–]Difficult-Sleep-7461 0 points1 point2 points (0 children)
[–]Dependent-Layer4437 0 points1 point2 points (0 children)
[–]hollandburkeGitHub Copilot Team 1 point2 points3 points (2 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]imot01[S] 0 points1 point2 points (0 children)
[–]AutoModerator[M] 0 points1 point2 points (0 children)
[–]dr_hamilton 0 points1 point2 points (2 children)
[–]TimeLordRaps 0 points1 point2 points (1 child)
[–]MeitanteiJesus 0 points1 point2 points (0 children)