

When trying with C files, which I'd never enabled and were also already assigned to VS2015, Windows wouldn't allow me to change it to NP++.Ī similar thing happened with PHP files which I didn't have a default editor for. I couldn't associate CPP files with NP++, but after I told NP++ to associate itself with CPP files, Windows allowed me to change CPP files to NP++ away from VS2015, and I can still change it back and forth even after turning the setting off in NP++. Here's the thing though, if you register file associations using Notepad++'s preferences window, they apply in Windows Explorer just fine. Wow, that's a pain! That's absolutely it though, because I checked and found out Notepad++ suffers from the same problem. What's going on? Associating VS Code with my text files should be the most basic of basic Windows integration. I even tried ignoring the blue icon in the selection list, and manually browsed and selected %LocalAppData%\Programs\Microsoft VS Code\Code.exe as the default editor. That works.īut if I select the blue "Visual Studio Code" option that appears in the list of applications, nothing changes. I change the association back to EmEditor. I just installed VS Code 1.28.1 yesterday. The problem is that none of this is working with VS Code. Or I can go to "Choose default apps by file type …", etc. Or I can go in to the properties of a file in Explorer, look at "Opens with", and click on "Change".

I can right-click in Explorer, select, "Open As.", select the application, and make sure "Always open with this app" is checked.
#Windows 10 cannot change default program for file type how to
I'm well aware how to associate an extension with an application on Windows.
