
On the other hand, if you need to change the associations for multiple file types, you should skip to the next method. The easiest way to change the association for a single file type is by using the Open with option, which we mentioned earlier. We will also throw in some bonus tips related to file associations in this post.
#How to set default program to open documents how to#
Keep reading this article to learn how to change the default apps in Windows 10 by file type. Now, there are two ways to change file associations in Windows 10: The three-letter designation next to it should be the file’s type. Once the Properties window is up, look at the Type of File area. You can do that by right-clicking the file, then selecting Properties from the context menu. You need to know the type of the file that you wish to change the association of. Also referred to as ‘changing file associations,’ this method will help you open files more conveniently. However, it can be frustrating to have to perform that extra step every time you open the file you need.Īs such, we will teach you how to change the default apps in Windows 10 by file type. Of course, there’s always the easier option of right-clicking the file you wish to open with a certain app and choosing the Open with option. So, if you’re experiencing the same problem, you can find comfort in knowing that you are not alone. py file in Windows and it launches the file in Python IDLE.It is not uncommon for Windows to open up certain files, using the wrong application. Go to: HKEY_CLASSES_ROOT\py_auto_file and did the exact same steps as step 12.1.Īfter all these steps, I am now able to double-click a. ico image that's within the IDLE icons folder. For the (Default) data, I put C:\Python35\Lib\idlelib\Icons\idle.ico to reference the. A "DefaultIcon" folder didn't exist so I right-clicked idle.bat and chose New > Key and named it "DefaultIcon". Go to: HKEY_CLASSES_ROOT\Applications\idle.bat.


I didn't know which to change so I changed BOTH. If UserChoice is not there, navigate to HKEY_CLASSES_ROOT\.py and make note of the (Default) value (ex: py_auto_file).In Registry Editor, navigate to: HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.py\UserChoice and make note of the Progid (Applications\idle.bat in my example).Start > run > regedit (to launch Registry Editor).This looks like crap so I did the next steps to associate a Python icon with. I've read that sometimes this doesn't work for some people.īut now, the icon of. py extension) and it will open using IDLE's idle.bat program. Click the idle.bat file and press OK.Īt this point, you should be able to click a python file (file with. py file extension and click "Change program" button in the top-right. You can go to your control panel and set file associations. py files may not be associated to a program. If installation fails first time, consider un-checking some of the "Advanced Options" during installation. I ran CCleaner specifically to remove / clean-up the registry, but also to clean up temp folders and just general maintenance. You can press F3 to find again each time. I deleted the ones that looked very specific to start-up procedures. I looked in keys, values and data but looking in just keys might be enough. (Optional, do with caution) In left pane of Registry Editor, right-click and select "Find".HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node.Looked in the following areas and deleted python keys entirely:.Windows "start" orb (bottom-left) > type "run" > type "regedit" in Run dialog box.Deleted remaining C:\Python34 folder entirely.Uninstalled Python 3.4 using control panel (Windows).I'm posting this so mainly I'll remember how I did this!

and it has a legit-looking Python icon (not an ugly. I finally got it to where I no-longer have to right-click and select IDLE.

I just updated from Python 3.4 to Python 3.5 and it was a nightmare setting IDLE as my default program. If You are updating from a previous version of Python. Navigate to C:\.\PythonXX\Lib\idlelib\idle.bat and select that.
