Skip to content

VSCode not to associate itself with any file type unless the user chooses so during installation #8687

Closed

Description

@darkred
  • VSCode Version: 1.2.1
  • OS Version: win10 x64

Steps to Reproduce:

  1. Install VSCode
  2. Open Control Panel > Control Panel Home > Default Programs > Assosiate a file type or protocol with a specific program:
    you'll notice that a hundred file types (in fact 101 !) are now associated with VSCode (screenshot 1).
    There was no such option to opt in during the installation (screenshot 2)
    neither there's a way to remove the file associations inside the program preferences.
    The only way remove the file associations is to uninstall VSCode altogether.

For reference, all other editors that I have installed: Sublime Text, Atom, Notepad++, gVim, UltraEdit
don't associate themselves with any file type.


So, my suggestion:
VSCode not to associate itself with any file extension unless the user chooses so during installation.
Even better, to be able to configure file type associations with VSCode (enable/disable each one) , inside the program's preferences.

Activity

  1. Tyriar commented on Jul 3, 2016

    @Tyriar
    Contributor

    I think there's already a checkbox on the installer for this. It's checked by default though, it should probably be opt-in.

  2. added
    install-update
    windows
    on Jul 3, 2016
  3. darkred commented on Jul 3, 2016

    @darkred
    Author

    No, there's no such checkbox. Please check screenshot 2 from my 1st post, and the attached video capture of the install procedure: Video_2016-07-03_235157.zip.

  4. added
    bug
    on Jul 4, 2016
  5. joaomoreno commented on Jul 4, 2016

    @joaomoreno
    Contributor

    My belief is that Code doesn't associate itself automatically, but simply registers as a possible editor for such files. Will investigate this in July, since many people complain.

  6. darkred commented on Jul 5, 2016

    @darkred
    Author

    No, that's not the case.
    Installer doesn't just add Code as an extra entry in windows explorer's rightclick|Open with menu for these file extensions:
    2016-07-04_183804

    I created various empty files with random extensions from my screenshot 1
    and all are associated with Code :
    2016-07-04_184313
    In other words, doubleclicking any of these files, opens them in Code.

  7. joaomoreno commented on Jul 5, 2016

    @joaomoreno
    Contributor

    Yes, but did you have any other application that was able to open those files before you installed Code? It makes sense that Windows picked Code to be the default if Code is the only one.

  8. darkred commented on Jul 5, 2016

    @darkred
    Author

    (sorry, accidentally closed the issue)

    I noticed two cases:

    • The .js files would open with Microsoft Windows Based Script Host (a windows component, it's by default).
      After installing Code they become assosiated with Code.
    • On the other hand, .sh files would open with Git for Windows.
      After installing Code they remain associated with Git.
  9. reopened this on Jul 5, 2016
  10. joaomoreno commented on Jul 5, 2016

    @joaomoreno
    Contributor

    Got it, thanks for the info! I will attempt to reproduce on a brand new Windows box, see what we can do.

  11. 5 remaining items

  12. dbaeumer commented on Aug 19, 2016

    @dbaeumer
    Member

    Assigning back to João Moreno (@joaomoreno) to react to comments.

  13. joaomoreno commented on Aug 19, 2016

    @joaomoreno
    Contributor
  14. DarkNami commented on Aug 19, 2016

    @DarkNami

    I uninstall and re-install again, uncheck "Register Code as an editor supported file types", it is ok now.
    2016-8-19 16-44-29

    If I update from previous version (1.2.x), installer will associate filetypes.

    Thanks.

  15. joaomoreno commented on Aug 19, 2016

    @joaomoreno
    Contributor

    Thank you!

  16. laggingreflex commented on Oct 14, 2016

    @laggingreflex

    Please add more options to set VSCode as default code editor, specially when switching from Sublime Text.

    Like in Control Panel\Programs\Default Programs\Set Default Programs

  17. cretace commented on Apr 27, 2017

    @cretace

    That box needs to spell out what it is going to do and it should show every association so we can untick ones we don't want. It is worded too vaguely.
    The install removed my previously set up editor associations - they no longer appear under "open with". Very annoying.

  18. trueneu commented on Aug 10, 2017

    @trueneu

    ...and it associates itself automatically with each and every file type it knows how to open on macOS. I love how VS Code thinks it is the only editor on my computer, but that's not the case.

  19. billinghamj commented on Nov 6, 2017

    @billinghamj

    How do I undo VSCode's damage on my Mac?

  20. rymcol commented on Nov 15, 2017

    @rymcol

    I still have this issue with macOS as well

  21. mifi commented on Nov 16, 2017

    @mifi

    Solution: Delete VSCode or move it away from /Applications

  22. billinghamj commented on Nov 16, 2017

    @billinghamj

    Yeah in the end I just deleted it and switched back to Sublime Text

  23. locked and limited conversation to collaborators on Nov 17, 2017
  24. added a commit that references this issue on Sep 6, 2026
    d486c23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

buginstall-updateverifiedwindows

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions