Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Prettier is not formatting C++ in VS code

Prettier is not formatting c++ code in VS code. I have to manually enter the indentation in the code. I would lie to know how to solve the issue. If it is not possible can someone suggest a code formatter for c++

like image 441
Santanu Biswas Avatar asked Oct 23 '25 17:10

Santanu Biswas


1 Answers

Prettier wasn't intended to format C++ code. You should install the C/C++ for Visual Studio Code extension developed by Microsoft, it supports code formatting.

Details can be found in the Visual Studio Code documentation.

like image 59
Dan Nagle Avatar answered Oct 26 '25 08:10

Dan Nagle