Format Document adding empty comments /**/ in CSHTML files #37660
Labels
Area-IDE
Bug
Developer Community
The issue was originally reported on https://developercommunity.visualstudio.com
help wanted
The issue is "up for grabs" - add a comment if you are interested in working on it
IDE-Formatter
Code formatter and/or smart indent
Milestone
When using Format Document in CSTHML files I am getting
/**/
appearing immediately following inline If statements, the empty comment string wouldnt be as much of an issue if it wasn't appearing in the rendered HTML for the View and if my View didnt have a dozen If statements and thus a dozen lines with/**/
appearing every time format document is used. Also, if ran a second time, Format Document creates two/**/
on subsequent lines, so my dozen becomes 24, then 36 etc and all of them appear in the rendered HTML.How do I stop this? I have already spoke to Progress about the specific control in question and they say they have seen similiar issues and it is a Format Document problem outside of their control.
Original Code:
Formatted Code:
This issue has been moved from https://developercommunity.visualstudio.com/content/problem/640604/format-document-adding-empty-comments-in-cshtml-fi.html
VSTS ticketId: 945043
These are the original issue comments:
Visual Studio Feedback System on 7/10/2019, 09:28 PM (21 days ago):
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Visual Studio Feedback System on 7/11/2019, 11:27 PM (20 days ago):
Thank you for sharing your feedback! Our teams prioritize action on product issues with broad customer impact. See details at: https://docs.microsoft.com/en-us/visualstudio/ide/report-a-problem?view=vs-2017#faq. In case you need answers to common questions or need assisted support, be sure to use https://visualstudio.microsoft.com/vs/support/. We’ll keep you posted on any updates to this feedback.
Ailsa Gu [MSFT] on 7/28/2019, 11:23 PM (3 days ago):
This feedback is being re-triaged as we are moving it to another team that can better help with the issue. Thanks for your patience.
These are the original issue solutions:
(no solutions)
The text was updated successfully, but these errors were encountered: