Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ code formatting

Tags:

c++

formatting

I've been using VS2005 and VS2008 now for a while, with C#. Without any additional tools I could hit ctrl k + d and the code would nicely reformat. Why doesn't C++ do this? It's the same Visual Studio after all. Is there a way to enable it?

A second part of this question is related, for those who've been using resharper with C#, is there a similar tool for C++?


1 Answers

  1. You can use Ctrl-K+Ctrl-F for "format selection".

  2. Link

like image 175
bmeric Avatar answered Jun 23 '26 15:06

bmeric



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!