hellomynameisA
hellomynameisA

Reputation: 634

Add tag to a python file in Windows 10

I am trying to tag my python files in Windows 10. However, it seems not to working. I right click on the file, see the details, go to details tab and then... nothing? I see some file properties, but I can't change them. The only thing I am able to do is "remove properties and personal information". What do you suggest?

Example: I have a file which gets numbers as an input from the user and sorts the numbers. My tags would be "sorting" and "input"

Upvotes: 0

Views: 1393

Answers (1)

ncraig
ncraig

Reputation: 1193

It is my understanding that, out of the box, Windows 10 supports a limited number of file types for tagging. Python files are not among those supported types. Therefore, some additional steps need to be taken.

This article details how to use the free File Meta Association Manager available from GitHub to enable tags for file types that aren't supported out of the box.

  1. Once File Meta Association Manager installer file is downloaded from the repository release page install it.
  2. Under the File Extensions list, scroll down and find .py. Then on the left side, select the "Simple" profile.
  3. Once the simple profile is selected, then click "Add File Meta Handler".
  4. Click the button to Restart Explorer.
  5. Open Explorer and right click on a py file and add tags. Note, I did not need to update the registry for this to work.

Main window for making changes

Select Simple

Happy tagging...

What if py isn't in the list? From this article:

If you can not find a specific file extension in the File Meta Association Manager, no application has registered the file extension so far. If you do associate a file extension with an application ("Always open with ..."), this does not create a registry entry. Therefore, associating an extension with an application is not sufficient that this extension gets listed in the File Meta Association Manager.

To add an extension not listed yet, you have to start the registry editor with administrator privileges, go to "HKEY_LOCAL_MACHINE" → "SOFTWARE" → "Classes" and choose "New → Key" from the context menu.

Upvotes: 2

Related Questions