Windows Explorer Preview Pane for .vb files

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”:

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:


Windows Registry Editor Version 5.00


Comments (4)

  1. Daniel says:

    Of course, this is very useful for code files…

  2. justin chase says:

    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 🙂

  3. Absolutely 🙂 One day… Did you know that Stephen Toub has written a lot about Preview Handlers?…/cc163487.aspx

  4. Mike says:

    Thanks, this was exactly what I needed to get my .json files to show up as text in the preview pane! Simplest method I could find. Thanks so muc