oderwat / vscode-indent-rainbow

Extension which shows indentation with a faint rainbow colored background to make them more readable
MIT License
407 stars 55 forks source link

Set the minimum amout of lines to start coloring #87

Closed J-u-n-o closed 4 years ago

J-u-n-o commented 4 years ago

To reduce the amount of coloring due to indents of e.g. wrapped code, specify the minimum of amount of lines to start coloring an indent. Maybe even better is to count of effective code lines instead of amount of screen lines. Effective code lines takes into account the empty lines and wrapped code, or wrapped comment blocks.

gbrunow commented 4 years ago

Do you mean like?

if(true){
    // do something <-- no coloring
}
if(true){
    // do something <-- coloring
    // do something <-- coloring
    // do something <-- coloring
    // do something <-- coloring
    // do something <-- coloring
    // do something <-- coloring
    // do something <-- coloring
}

That way only large block of code would be colored?

oderwat commented 4 years ago

This would defeat the purpose of the plugin, which actually is showing a representation of the indents. Maybe you need another color schema for your personal perception.