oderwat / vscode-indent-rainbow

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

[Feature Request] show indent guide for empty lines #71

Closed japamat0 closed 4 years ago

japamat0 commented 4 years ago

Is there a way to add the correct indent guide to empty lines, e.g.

for the following:

function sumDoubleNums(a, b) {
  const aDoubled = a * 2;
  const bDoubled = b * 2;

  return aDoubled + bDoubled
}

Any way the line between declaring bDoubled and the return statement to have an indent guide? Some way to tell that if the line has no spaces nor tabs, treat it as if it held the same number of tabs or spaces as the line above?

I've tried digging around in the extension.ts file and can't for the life of me figure out where it's evaluating the content for either tabs or spaces.

oderwat commented 4 years ago

See #3 ... sorry!