-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
In a cpp file asterisk as first non-whitespace character on a line triggers another asterisk on new line #2072
Comments
Looks like a bug with our comment continuation patterns, i.e. /** is supposed to continue the line with *. |
Can you please share the value you have set for |
Sorry, I misread the repro. Because the comment continuation stuff is reg-exp based (and not multiline aware), this is actually the expected behavior for the default value. You will observe the same behavior with JavaScript and TypeScript files. If you want to disable this behavior, you can set |
Hi all, Thanks for looking at the report. From my (user) perspective I expect the behavior to be context aware. So, If I'm in the middle of a multiline comment (I started with Thanks! |
I agree with you, but you may need to ask the vs code team for help here since we are unfortunately limited by the reg exp support. |
This is being tracked by microsoft/vscode#50952 |
Steps to Reproduce:
Type the following text in a
.cpp
fileThen hit enter at the end of the line to begin a new line. You'll get
This is not expected behavior in this context. This is perhaps expected when in the middle of a multiline decorated comment but not otherwise.
This does not happen in an unsaved file, a file with no extension,
.txt
extension etc. and does not happen if the cpptools extension is disabled and happens when it is re-enabled.The text was updated successfully, but these errors were encountered: