Search code examples
intellij-ideasap-commerce-cloudfoldingimpex

How to disable auto-folding of impex code in IntelliJ


I have tried everything others had to say about disabling code folding in IJ, but nothing seems to work for Impex files (hybris-specific delimited files)

I have the hybris Integration plugin installed and I think this is what is messing things up


Solution

  • If the auto-folding's isCollapsedByDefault property is hard-coded to true, then configuration will not help, but you can hack.

    To get rid of it, you can either:

    • edit the source code (change true in this line into false will work) and build your own version of the plugin (you can edit the code and run gradlew buildPlugin and get a zip file in build/distributions)
    • Edit the META-INF/plugin.xml of the plugin jar, remove these lines and restart IntelliJ. By this you won't have to re-compile a plugin yourself
    • Press Ctrl+Shift++ each time when you open an Impex file, this will expand all the foldings