-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
New lines are removed from docstrings if prefixed by "@brief" Doxygen style #10039
Comments
It seems it's a regression, it was already fixed with: |
It's not a regression -- the fix was to turn the newline into a space. |
This was opened on VS at https://developercommunity.visualstudio.com/t/Tooltips-are-not-showing-doxygen-comment/10087897 . They closed it as "not a bug". You could try filing a feature request. |
@sean-mcmanus Indeed, sorry for calling this a regression. I thought it worked some times ago, I must have been dreaming. Following your advice, I opened a "feature request" ticket here: Avoid converting newlines into spaces in Doxygen "brief" comments (#10178887). 👍 |
Make sure to upvote here: https://developercommunity.visualstudio.com/t/Avoid-converting-newlines-into-spaces-in/10178887 IMO it's a bug. |
An annoying workaround (setup process and only one new line) until this is pushed to release is to use the @detail command to get a line break between the brief and description. Make sure to enable the details tag in Extensions -> C/C++ -> Code Documentation -> Section Tags ( |
This problem still exist. |
@JPHutchins from your screenshot it looks like you could benefit from #5773 as well. Did you add your 👍 to it yet? |
@bobbrow This is great, I can confirm that it works very well, thanks! I made some tests and discovered, however, that it breaks the rendering of code blocks (v1.21.6): /**
* @brief Hello there
*
* Hello again.
*
* ```cpp
* int main() {
* std::cout << "Hello from code\n";
* return 1;
* }
*```
*/
void foo(); Should I open a new issue? |
@Delgan, I can open it for you. Thanks for reporting it. This issue was supposed to have been closed with the release of 1.21. |
Environment
Bug Summary and Steps to Reproduce
Bug Summary:
When a docstrings starts with
@brief
(which is a Doxygen convention), then newlines are ignored. This is not very convenient, because the@brief
should appear on the first line and detailed description on following blocks.With
@brief
:Without
@brief
(expected):Debugger Configurations
Debugger Logs
Other Extensions
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: