@as232 said in File type associations not working:
I’ve used NPP for years and recently installed 8.9.1 on a new Win11 system. It appears that the File Association configuration under Setting does not take
Windows has been trying to distance itself from the original “file association” technology for decades. They keep on making it harder and harder for the end user to implement something via that old technology. Through that preference section, Notepad++ tries its best to convince Windows to do things the old ways, but it needs to be running As Admin for it to even try, and it’s at the mercy of the OS as to whether the OS will propagate such settings to the user, or completely bypass them.
Fortunately, you don’t need to use Notepad++'s “File Association” preferences to get file types associated with Notepad++, or to open them with Notepad++.
If you did a normal installation of Notepad++, it will add an Edit with Notepad++ entry to the main right-click file menu (by registering the NppShell DLL when you install Notepad++), so you can open any file you want with Notepad++ by using that right-click entry.
Further, if you want a file’s type to permanently default to Notepad++ (so double-click launches Notepad++ on that file), you just have to go to the Right Click menu’s Open With, and if Notepad++ isn’t already listed in that sub-menu, then Choose Another App and choose it there, clicking Always to make it stick; if it’s not even there, then click Choose an App on your PC and browse to c:\Program Files\Notepad++\notepad++.exe or your installation’s equivalent.
If this doesn’t help you, then you’ll have to figure out how to copy/paste the image into your post (you can even drag and drop the image from your Explorer window into the post-editing panel while you are replying here, so you don’t even have to copy/paste, if you don’t want to), so that we can see what is uniquely happening for you.