visual-studio-code

How to show new line in the hint generated from comment in VS Code


When using VS Code, I want my block comments shown with the new line when I move the cursor onto it. Currently it is presented in just one line as below. I did google online but didn't find anything related. Any advice would be appreciated!

VSCode Version 1.59.0

Commit 379476f0e13988d90fab105c5c19e7abc8b1dea8

Related Issue C/C++ doc comments preview doesn't react to newlines (Should be fixed yet)

enter image description here

Update 8.28:

(1) In my case, @brief, @param, etc have an effect of removing newline of the following statement, and Markdown grammar cannot be interpreted in my VS Code, e.g.

enter image description here

(2) The only way it works is using pure block comments like this:

enter image description here


Solution

  • In my experience, in VS Code 1.76.2 you can separate paragraphs only in the @note section by adding more @note

    Note section adds paragraphs

    I don't have more extensions besides the default C/C++ by Microsoft