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.
Asked
Active
Viewed 135 times
1
-
1Why not try opening it in and see what happens? – David Cain Jun 15 '12 at 14:55
-
1@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 03:51
1 Answers
2
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.

javawizard
- 1,277
- 1
- 12
- 17