From the comments, you have Dropbox, and the Restore functionality is available, but using it would cost you a week's worth of work.
If I was in that situation, here's what I would do:
- Copy the current file to somewhere else (My Documents, for example).
- Use Dropbox Restore to get the old version that works.
- Make a copy of this, because you're going to be modifying it
- Ensure that you can open it in the IDE.
- Use Beyond Compare to open the two files side-by-side. (If you don't have this, you really should!)
- If they're completely different from each other, you have a serious problem. If not, you'll see the changes you've made. Start copying changes one at a time, and after each change, save and try to open it in the IDE.
- At some point, you won't be able to. That's where your problem lies. Now you can fix it!