Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Format Document (^K^D) deletes needed line continuation underscores in VB.NET #69696

Closed
vsfeedback opened this issue Aug 24, 2023 · 3 comments
Closed
Assignees
Labels
Area-IDE Bug IDE-Formatter Code formatter and/or smart indent
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


[severity:It's more difficult to complete my work] [regression]
Whenever I press ^K^D to format a VB.NET code behind file in a web application, it removes many needed continuation underscore characters and breaks the application so it will no longer compile.

Example:

Dim ErrMsg As String = "Header line is empty!\n" _
                                      & "The first line of the file must contain header field names..."

Becomes:

Dim ErrMsg As String = "Header line is empty!\n" 
                                      & "The first line of the file must contain header field names..."

Removing the continuation character prevents it from compiling.


Original Comments

Feedback Bot on 8/23/2023, 09:39 PM:

(private comment, text removed)


Original Solutions

(no solutions)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 24, 2023
@frontier777
Copy link

I have the same issue. And the suggestion that I have read elsewhere, to put an apostrophe (comment) at the end of the line, while it does preserve the underscores, it also breaks the old compiler.

@arunchndr arunchndr added IDE-Formatter Code formatter and/or smart indent and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Aug 28, 2023
@arunchndr arunchndr added the Bug label Aug 28, 2023
@arunchndr arunchndr added this to the 17.8 P3 milestone Aug 28, 2023
@sharwell
Copy link
Member

sharwell commented Oct 9, 2023

I can't reproduce this while editing a VB document, and I also can't reproduce it in unit tests.

@CyrusNajmabadi
Copy link
Member

Closing out as not repro.

@CyrusNajmabadi CyrusNajmabadi closed this as not planned Won't fix, can't repro, duplicate, stale Oct 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Bug IDE-Formatter Code formatter and/or smart indent
Projects
None yet
Development

No branches or pull requests

5 participants