You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
VSCode not to associate itself with any file type unless the user chooses so during installation #8687
bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuesverifiedVerification succeededwindowsVS Code on Windows issues
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.
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.
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.
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:
I created various empty files with random extensions from my screenshot 1
and all are associated with Code :
In other words, doubleclicking any of these files, opens them in Code.
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.
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.
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.
Reacted by Mr Speaker, Dreftymac and Jérémy Rocher
...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.
Reacted by Patrick Harrington, Jamie Grisdale and James Billingham
bugIssue identified by VS Code Team member as probable buginstall-updateVS Code installation and upgrade system issuesverifiedVerification succeededwindowsVS Code on Windows issues
Activity
Tyriar commentedon Jul 3, 2016
I think there's already a checkbox on the installer for this. It's checked by default though, it should probably be opt-in.
darkred commentedon Jul 3, 2016
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.
joaomoreno commentedon Jul 4, 2016
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.
darkred commentedon Jul 5, 2016
No, that's not the case.

Installer doesn't just add Code as an extra entry in windows explorer's
rightclick|Open withmenu for these file extensions:I created various empty files with random extensions from my screenshot 1

and all are associated with Code :
In other words, doubleclicking any of these files, opens them in Code.
joaomoreno commentedon Jul 5, 2016
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.
darkred commentedon Jul 5, 2016
(sorry, accidentally closed the issue)
I noticed two cases:
.jsfiles would open withMicrosoft Windows Based Script Host(a windows component, it's by default).After installing Code they become assosiated with Code.
.shfiles would open withGit for Windows.After installing Code they remain associated with Git.
joaomoreno commentedon Jul 5, 2016
Got it, thanks for the info! I will attempt to reproduce on a brand new Windows box, see what we can do.
5 remaining items
dbaeumer commentedon Aug 19, 2016
Assigning back to João Moreno (@joaomoreno) to react to comments.
joaomoreno commentedon Aug 19, 2016
#10694
DarkNami commentedon Aug 19, 2016
I uninstall and re-install again, uncheck "Register Code as an editor supported file types", it is ok now.

If I update from previous version (1.2.x), installer will associate filetypes.
Thanks.
joaomoreno commentedon Aug 19, 2016
Thank you!
laggingreflex commentedon Oct 14, 2016
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 Programscretace commentedon Apr 27, 2017
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.
trueneu commentedon Aug 10, 2017
...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.
billinghamj commentedon Nov 6, 2017
How do I undo VSCode's damage on my Mac?
rymcol commentedon Nov 15, 2017
I still have this issue with macOS as well
mifi commentedon Nov 16, 2017
Solution: Delete VSCode or move it away from /Applications
billinghamj commentedon Nov 16, 2017
Yeah in the end I just deleted it and switched back to Sublime Text
allow users to skip file associations in setup