Take the 2-minute tour ×

If I have a python file that has no suffix. Can pydev read that file as a python file using the first line of the file if it includes a #!/usr/bin/python? I'm not really concerned specifically about using that first line, just that that line exists and might be useable. If there is a manual way to mark a file as a python file without mucking with its suffix that'd be fine as well.

share|improve this question
Why not try opening it in and see what happens? –  David Cain Jun 15 '12 at 14:55
@David I'm not sure what you are saying, when I open the file it is not treated as a python file, that's why I asked the question. –  Nathan Feger Jun 15 '12 at 15:04
Ah, okay. You might want to include what you tried in your question then. –  David Cain Jun 16 '12 at 3:51
add comment

1 Answer

up vote 2 down vote accepted

Just right-click on the file, then hit "Open With" -> "Other", then choose "Python editor" and hit OK. Eclipse will remember your choice and from then on will open that particular file in the Python editor when you double-click it.

share|improve this answer
nice thanks. so simple. –  Nathan Feger Jun 18 '12 at 14:28
add comment

Your Answer


