vscode-data-table icon indicating copy to clipboard operation
vscode-data-table copied to clipboard

Highlight different types of json

Open usernamehw opened this issue 4 years ago β€’ 3 comments

Highlight data with the same colors as it uses in .json file in editor, for example string | boolean | number:

Screenshot (145)

Screenshot (146)

usernamehw avatar Jul 23 '21 20:07 usernamehw

interesting idea. can def. help to differentiate data types in table columns. I like it!

RandomFractals avatar Jul 23 '21 20:07 RandomFractals

@usernamehw btw, if we go this route, should we add separate CSV tab and create rainbow CSV view?

Data analysts and devs seem to like it a lot: https://github.com/mechatroner/vscode_rainbow_csv

RandomFractals avatar Jul 24 '21 12:07 RandomFractals

Yes, coloring columns with random colors for .csv would be an improvement.

Another feature might be coloring based on column name or column data pattern:

  • If the column name includes date => then make items of the color that user specified dates should be
  • If the table cell value matches RegExp /\d+/ => then make items of that column of the color user specified numbers should be

I don't know if .csv columns are always of the same data type or not though.

usernamehw avatar Jul 24 '21 15:07 usernamehw