Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 Jul 30 '12 at 21:56

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

Right-Click > Properties.

Change the default Opens with to IDLE

share|improve this answer

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

Your Answer


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