question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Formatting document should not destroy comments

See original GitHub issue

If yaml.format.enable is true, using the “Format Document” function destroys YAML comments.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:3
  • Comments:13 (7 by maintainers)

github_iconTop GitHub Comments

2reactions
JPinkneycommented, Oct 1, 2018

Hi! we’ve replaced the formatter with a new one that doesn’t strip comments!

1reaction
JPinkneycommented, Mar 19, 2018

This is an issue with the underlying parser. Currently there is not a parser (that I can find) that supports comment nodes. if one becomes available then I would happily switch the formatter to use that to preserve the comments.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to stop VS. Code from destroying the formating of my code?
But it (usually) works if I do a: Ctrl + A then F1 --> Align . If you do formatting, VSCode will just...
Read more >
Chapter 8. Formatting Documents
Document formatting refers to the way a document is laid out on the page—the way it looks and is visually organized—and it addresses...
Read more >
Word document formatting is not retained ... - Microsoft Support
Word document formatting is not retained when document is inserted as a file ... Method 1: If the source document does not contain...
Read more >
How to Remove Comments and Accept All Changes in Word
Tips on Using Comments in Microsoft Word ... You can format the text in comments like you would with regular text in Word,...
Read more >
How to REMOVE and HIDE comments in Word (w/ Shortcuts)
Learn how to REMOVE and HIDE comments in Word so that you can quickly declutter your workspace and focus on your task at...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found