Quantcast
Channel: Active questions tagged visual-studio-code - Stack Overflow
Viewing all articles
Browse latest Browse all 97327

Wrong intendation of multiline comments in VSCode with C/C++ extension

$
0
0

It seems that the clang formatter of the C/C++ extension has difficulties when intending multiline comments.

I get the following format when using the formatter (so just the first line is formatted properly):

     /**
* @brief Does cool stuff
*
* @param param1
* @returns myresult
*/
     bool myFunction(bool param1);

However I would expect the format to be:

     /**
     * @brief Does cool stuff
     *
     * @param param1
     * @returns myresult
     */
     bool myFunction(bool param1);

My VSCode Clang Format style:

{BasedOnStyle: Google, IndentWidth: 3, ColumnLimit: 0, NamespaceIndentation: All, AlignTrailingComments: true}

Am I missing a Styleparameter or is this a bug in the formatter?


Viewing all articles
Browse latest Browse all 97327

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>