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

2

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"?

user1387622

Posted 2012-07-30T21:37:04.450

Reputation:

Answers

4

Right-Click > Properties.

Change the default Opens with to IDLE

inspectorG4dget

Posted 2012-07-30T21:37:04.450

Reputation: 1 153

3

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 ...

cedbeu

Posted 2012-07-30T21:37:04.450

Reputation: 291