I love using the Preview Pane in Windows Explorer to quickly preview file contents:
Usually, to enable this preview for a file extension I just open regedit, go to HKEY_CLASSES_ROOT –> .xxx (where xxx is the extension you’re interested in), and add a string key called PerceivedType with value of “text”: http://blog.wpfwonderland.com/2011/01/15/customize-windows-7-preview-pane-for-xaml-files/
However for some reason it didn’t work for .vb files. After some web searching, one solution I found that worked for me is to add the preview handler GUID explicitly under a “shellex” key: http://www.howtogeek.com/howto/windows-vista/make-windows-vista-explorer-preview-pane-work-for-more-file-types/
Windows Registry Editor Version 5.00
Of course, this is very useful for code files...
You should figure out how to get this to call to a roslyn based dll that will let you get syntax highlighting for vb/cs files in the preview too :)
Absolutely :) One day... Did you know that Stephen Toub has written a lot about Preview Handlers? msdn.microsoft.com/.../cc163487.aspx