Python: preview .py in windows explorer

Mark python files to be displayed as text in the windows explorer preview pane

  • Open the registry editor (regedit in the start menu search) and navigate to computer\HKEY_CLASSES_ROOT\.py
  • Make 2 new string values (REG_SZ) under the file extension’s key, Content Type and Perceived Type

RegeditPy

Of course this works with any extention (.cs .css …)

More information

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>