Add code folding to custom file type?

Is there a way to specify what code blocks should have folding available by default for custom file types?

I have created a Google Protocol Buffer file type for syntax highlighting of .proto files. They are very JSON-like with lots of { } braces. However, I have to manually select each of these blocks and do the Fold Selection command. That's not so bad if I have to only do it once, but when I close and re-open the file all the Fold Selections are gone (which was asked about here http://forum.jetbrains.com/thread/PyCharm-285 but never answered). I would love to be able to specify that {} should have folding by default for this file type.
1 comment
No, custom file types do not have any possibility to configure folding. Folding can only be implemented in a third-party plugin.
0

Please sign in to leave a comment.