Skip to content

Windows PowerShell should be the default terminal program on Windows #16838

Closed

Description

@daviwil

I'd like to recommend making PowerShell the default terminal program on Windows when the user hasn't configured their path (and when the COMSPEC environment variable hasn't been explicitly set). Since PowerShell will now be the default terminal program in Windows 10 going forward (see blog post), I think it makes sense to make it the default in VS Code on Windows as well.

What do you think?

Activity

  1. dburt667 commented on Dec 7, 2016

    @dburt667

    I absolutely agree with PowerShell being Default Term.

  2. rkeithhill commented on Dec 7, 2016

    @rkeithhill

    Agreed!!

  3. ChrisWarwick commented on Dec 7, 2016

    @ChrisWarwick

    Yep. Please.

  4. laureladastra commented on Dec 7, 2016

    @laureladastra

    Couldn't agree more with the other people.

  5. mattmcnabb commented on Dec 7, 2016

    @mattmcnabb

    Can't argue at all. Seems natural that it would follow the Windows default command line program.

  6. johlju commented on Dec 7, 2016

    @johlju

    I agree

  7. Tyriar commented on Dec 7, 2016

    @Tyriar
    Contributor

    David Wilson (@daviwil) isn't COMSPEC set by default? Is it possible to tell if it's explicitly set?

  8. added
    feature-request
    terminal
    on Dec 7, 2016
  9. added this to the Backlog milestone on Dec 7, 2016
  10. tostca commented on Dec 7, 2016

    @tostca

    Sounds like an great idea :)

  11. MathieuBuisson commented on Dec 7, 2016

    @MathieuBuisson

    I do agree.

  12. daviwil commented on Dec 7, 2016

    @daviwil
    ContributorAuthor

    Daniel Imms (@Tyriar) looks like it is set to cmd.exe by default. That was my understanding too but someone suggested that there are cases when it isn't set; I don't have any data to back that up. Even though Windows 10 is going to default to PowerShell in the UI now, I haven't heard whether they'll change COMSPEC to point to PowerShell. Either way, since PowerShell is far better than cmd.exe for developers, it makes sense to default to it in VS Code on Windows.

    If the team decides it's better to stick with COMSPEC, I might see if users of the PowerShell extension would be OK with us auto-configuring the terminal to point to PowerShell on Windows.

  13. Tyriar commented on Dec 7, 2016

    @Tyriar
    Contributor

    I'm concerned about breaking people's workflow. The little experience I do have suggests that we may be by switching this. Specifically I recall it being very slow doing trivial commands and one of my most used commands before I jumped over to Linux wasdir/w which throws a scary looking error in PS.

    By default on Windows does the post mean that powershell will appear first when you search for "cmd", with cmd.exe also matching the search? Because that at least gives people a very clear option, configuring the integrated terminal is a little less trivial. It also seems preferable to rather get the Windows team to make COMSPEC point to (64-bit) Powershell rather than updating every tool to work around it? Right now I believe it points at the 32-bit version of cmd.exe by default, even on 64-bit machines.

    Having powershell update the config in the meantime makes total sense though (via a messagebox?).

  14. 12 remaining items

  15. jchadwick commented on Jan 13, 2017

    @jchadwick
    Contributor

    Daniel Imms (@Tyriar) take a look at the above commit, which implements your requirements above (I think). All except the requirement to look at x86 vs. x64 - that is not necessary, as the path is same for both.

    However, taking your direction literally, it does not call processes.getWindowsShell() in the case of Win10/Powershell and therefor does not take into consideration process.env['comspec'] to allow the user to override.

    Is this what you intended? Or, should processes.getWindowsShell() be updated to return Powershell instead? I realize this could have unintended effects, since getWindowsShell() seems to be called in multiple places by VSCode internally...

  16. Tyriar commented on Jan 13, 2017

    @Tyriar
    Contributor

    Thanks Jess Chadwick (@jchadwick), let's discuss in the PR.

  17. added a commit that references this issue on Jan 14, 2017
    a067422
  18. added a commit that references this issue on Jan 15, 2017
    cd17a28
  19. added
    verification-needed
    on Jan 23, 2017
  20. Tyriar commented on Jan 23, 2017

    @Tyriar
    Contributor

    To verifier: check that powershell is now the default terminal shell on Windows 10

  21. Tyriar commented on Mar 20, 2017

    @Tyriar
    Contributor
  22. locked and limited conversation to collaborators on Nov 18, 2017
  23. added 2 commits that reference this issue on Sep 6, 2026
    4de6cbd
    ebc2337
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requesthelp wantedterminalverification-neededverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions