This is a third party library or your own? Why can't you break it into multiple files and concat them with a build step?
(I'm not trying to be snarky and I apologize if the above comes off that way.)
I for one think that developing a project in multiple files that can all be understood on their own is the only sane way to develop at all, regardless of editor choice.