Formatting Issues: Spaces in < > and Line Breaks

Hi,

I just started using CLion for C++. Here’s an example of my code:

namespace Test {
   static vector<vector<vector<int>>> *abc;
}

After reformatting, it turns into:

namespace Test {
   static vector <vector<vector < int>>> *
   abc;
}

I need:

  1. No spaces before/after < and >.
  2. No line break for abc.

How can I fix this?

Thanks!

 

0

Hello!

Sorry for the delay in response.

It looks like CLion doesn't understand your code. 

  1. What build system is your project based on? CMake, Makefile, some other?
  2. Does the issue happen in a default "Hello, World!" project (File | New Project > C++ Executable > Create)?
0

请先登录再写评论。