Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
Show HN: JSON Commenter, add comments with valid JSON syntax (visualstudio.com)
2 points by mchahn 84 days ago | hide | past | favorite | 1 comment
JSON Commenter is a vscode extension that lets you create inline comments in a JSON file while keeping valid syntax. You create a block with a command that places the comment anywhere legal in the JSON. The text is edited inline and supports word wrap, padding, margins, etc.

The comment is in a somewhat good-looking box with minimal extra characters. Zero-width unicode chars give keys that only show two quotes. This is a sample comment block...

  "         ":"----------------------",
  "         ":" This is a comment.   ",
  "         ":"----------------------",


Note that the keys actually show as an empty string, not with all the spaces shown in the post above. HN is not showing the unicode characters properly.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: