Reputation: 7380
I'm having a problem with eclipse+pydev. It suddenly refuses to parse a .py file as a python script, which means no syntax highlighting, code completion etc. It worked up until now, but I couldn't find a way to convince it to re parse it. re-opening the file, re-starting the IDE does not help. I suspect deleting some kind of meta-data file would do the trick.
Has anyone here encountered this and has a quick solution? I would greatly appreciate that!
Upvotes: 1
Views: 470
Reputation: 4656
Right click on the python file you care about and see what the default editor is. You can manually switch any file type here. If it's plain text, just switch it back to PyDev.
To ensure that the setting is global, go to Window > Preferences > General > Editors > File associations and look for .py, .pyw, and .pyx. They should all be set to "Python Editor (default)". If not, just select it and select default. If it's not there at all, you can select the "add" button and add it from there.
Upvotes: 2