VS Code API: Is there a function to find how many indentation rulers exists in a line?

40 Views Asked by At

For instance: Given the following python code

  • Lines 2,3,4,5 have only 1 indentation ruler
  • Line 6 have 2 indentation rulers
  • Lines 7,8 have 3 indentation rulers
  • Lines 1,9,10,11 have no indentation ruler at all

enter image description here

Is there a function in VS Code API that gets this information?

The purpose is to use in an extension

0

There are 0 best solutions below