Created
November 7, 2020 11:57
-
-
Save GadgetSteve/6a3785fb3998e013f9fe7f5b75bb3872 to your computer and use it in GitHub Desktop.
Tell explorer to preview python files as text
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.py -Name PerceivedType -Value text | |
Set-ItemProperty Registry::HKEY_CLASSES_ROOT\.pyw -Name PerceivedType -Value text | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.