How to open Python files in IDLE by default? (Windows)

9,194

Solution 1

Right-Click > Properties.

Change the default Opens with to IDLE

Solution 2

or right-click on a .py file > Open with > Choose default program...

Then Browse..., until you find IDLE (probably something like C:\Python27\Lib\idlelib\idle.bat if you have Python 2.7 installed) ...

Then OK, check the box labelled "Always use the selected program to open this kind of file", and ... voilà.

But, not sure it's a good idea, though... I'd better keep the .py or .pyw files associated with the python interpreter, and right-click > Open with > IDLE when needed, IMHO ...

Share:
9,194

Related videos on Youtube

Erik
Author by

Erik

Updated on September 18, 2022

Comments

  • Erik
    Erik over 1 year

    When I double click a .py file in windows, by default it opens a terminal and executes the file. Is there any way to change the default action to "open with IDE"?