Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

share|improve this question

migrated from stackoverflow.com Jul 30 '12 at 21:56

This question came from our site for professional and enthusiast programmers.

add comment

2 Answers

Right-Click > Properties.

Change the default Opens with to IDLE

share|improve this answer
add comment

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|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.