dima74 / intellij-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
https://plugins.jetbrains.com/plugin/13308-indent-rainbow/
GNU General Public License v3.0
64 stars 13 forks source link

Feature request: disable on big files #25

Closed ggalmazor closed 2 years ago

ggalmazor commented 3 years ago

Expected Behavior

Overall IDE performance is negatively affected by this plugin when dealing with big files (hundreds of lines).

I would like to configure a threshold of lines so that, when the file I'm editing has more lines than those set on the threshold, then this plugin is automatically disabled for that file.

That way, I can set a threshold that works for my specific environment (memory settings, type of files I open, number of open files, etc).

Current Behavior

The plugin works for every open file, regardless of their size.

Possible Solution

I'm not sure about the specific implementation of this feature, but I think it would require a new configuration option to enable this feature, and another new configuration field to set the threshold.

Your Environment

RubyMine 2020.3
Build #RM-203.5981.152, built on November 30, 2020
Licensed to Guillermo Gutierrez Almazor
Subscription is active until February 20, 2021
Runtime version: 11.0.9+11-b1145.21 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.16
GC: ParNew, ConcurrentMarkSweep
Memory: 8125M
Cores: 8
Registry: ide.balloon.shadow.size=0, jest.test.tree.use.jasmine.reporter=false
Non-Bundled Plugins: com.4lex4.intellij.solarized, com.github.mturlo.intellij.theme.spacegray, com.samdark.intellij-visual-studio-code-dark-plus, com.thvardhan.gradianto, NodeJS, org.jetbrains.plugins.vue, com.dmarcotte.handlebars, ru.adelf.idea.dotenv, indent-rainbow.indent-rainbow
markuszeller commented 3 years ago

When this plugin is active and I am running inspections for example on a Wordpress theme, it slows it extremely down - that much that it feels like a total freeze.

dima74 commented 2 years ago

@ggalmazor Thanks for your feedback! The option was added in the latest release 1.7.0:

image