Use Windows default icon with Notepad++

iconsnotepad

I do like Notepad++, but I hate its icon. I'm very happy with Windows icons for txt/ini/… files, and would like to keep them. How can I associate Notepad++ with all supported filetypes without changing icons? With Notepad2, the problem did not occur.

Best Answer

Here's a quick answer that works perfectly. It's based on @bubu's answer, but massively simplified to make it easier:

  1. Open RegEdit
  2. Go to HKEY_CLASSES_ROOT\Applications\notepad++.exe\DefaultIcon (If DefaultIcon doesn't exist, create it under New > key)
  3. Create a new string value and set it to C:\Windows\System32\Shell32.dll,70

It should look something like this when you're done:

enter image description here

This will set ALL files associated with NotePad++ to the default .txt icon in Windows 10. (The text document icon is the 70th icon in Shell32.dll.)

Simply sign out and back in to see the change.

enter image description here

For other versions of Windows the .txt icon won't be the 70th one, so to pick the one you want, simply open Shell32.dll after selecting "Change Icon", and count to the icon you want to use like so:

1  5  9   13
2  6  10  14
3  7  11  etc
4  8  12
Related Question