vscode icon indicating copy to clipboard operation
vscode copied to clipboard

How to remove comments of snippet

Open zlee520 opened this issue 3 years ago • 2 comments

{/**

  • path: Path to the array field.
  • includeArrayIndex: Optional name for index.
  • preserveNullAndEmptyArrays: Optional
  • toggle to unwind null and empty values. */ $unwind: { path: path, includeArrayIndex: 'string', preserveNullAndEmptyArrays: boolean }}

zlee520 avatar Jan 12 '22 10:01 zlee520

Hey, thank you for reaching out and for trying the extension! Currently, there is no such setting to disable comments in snippets. We already have a similar request on our feedback forum. You can vote for it and track progress there.

alenakhineika avatar Feb 21 '22 10:02 alenakhineika

I've solved it edit the file c:\user\yourname.vscode\extensions\mongodb.mongodb-vscode-0.9.3\snippets\stage-autocompleter.json and remove the comments

zlee520 avatar Jun 10 '22 02:06 zlee520

Hey, with the v0.11.1 version of the extension we shipped the IntelliSense improvements, which include replacing previously existing snippets with autocomplete for aggregation stages and operators. Now we do not insert documentation blocks directly into the playground. Instead, when selecting a stage from the suggestions list you can find a hint on what the operator does and a link to the online documentation.

alenakhineika avatar Mar 31 '23 08:03 alenakhineika