If I click on a .ts
(typescript) file and activate the Preview Pane in Windows Explorer, then I see a preview of the file:
Why? Because I set Notepad to open .ts
files.
But I have .js
files which I set Notepad++
to open them and I don't see a preview in the Preview Pane:
Question
How can I show .js
files in the Preview Pane and still keep Notepad++ as this file type's default program?
I don't want to open Notepad++ with the option: Right-click > Open With.
I have Windows 7.
Best Answer
Follow these directions to edit the Registry and assign the Windows Text Preview Handler to the
.js
file extension. (Based on this How To Geek article.)HKEY_CLASSES_ROOT\.js
and make note of the content of the (Default) value. This is the ProgID to which the.js
extension is registered:HKEY_CLASSES_ROOT\JSFile