Skip to content

Instantly share code, notes, and snippets.

@GadgetSteve
Created November 7, 2020 11:57
Show Gist options
  • Save GadgetSteve/6a3785fb3998e013f9fe7f5b75bb3872 to your computer and use it in GitHub Desktop.
Save GadgetSteve/6a3785fb3998e013f9fe7f5b75bb3872 to your computer and use it in GitHub Desktop.
Tell explorer to preview python files as text
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.py -Name PerceivedType -Value text
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.pyw -Name PerceivedType -Value text
@GadgetSteve
Copy link
Author

GadgetSteve commented Aug 27, 2021

Save the above file and run it to enable pre-view of python files in Windows Explorer. Alternatively paste the above text into a Power Shell Admin session.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment