VS Extension DataTables - Better handling of numbers in columns #681
Replies: 2 comments 10 replies
-
One more input in the matter is that I just noticed that the HTML formatter seems to align as expected without prefixing zeros. |
Beta Was this translation helpful? Give feedback.
-
Yes, the VisualStudio extension currently left aligns.
Any others? I would be inclined to test for the presence of any alpha character (perhaps other than e/E) or any non-currency non-alphanumeric character (other than common separators), and if found treat it as not a number (left-aligned), otherwise right-aligned. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Right now it seems that there is only left alignment in data tables which is not very user friendly for columns with numbers.
If looking at the examples here https://cucumber.io/docs/gherkin/reference/#scenario-outline they at least seem to "promote" this.
I can't find anything about alignment in the extension code, maybe I'm missing something?
A workaround I have is to prefix with zeros but that is not as elegant as I would like it.
Another thing to take into consideration is right-to-left languages.
Beta Was this translation helpful? Give feedback.
All reactions