How to disable moving inline comment to next line when using reformat?

已回答

I use clion and intellij rust plugins, and have the following code:

```rust

Null,         // null
OpenBracket, // (
CloseBracket, // )
Comma, // ,
Add, // +
Sub, // -

```

When i use reformat (ctrl+alt+l), it makes the comments in next line:

```rust

Null,
// null
OpenBracket,
// (
CloseBracket,
// )
Comma,
// ,
Add,
// +
Sub,
// -

```

I have explore code style in the settings, but I can't find anything to disable it.

How to solve this problem?

0
Avatar
Permanently deleted user

Thank you for your reply.
I will subscribe that issue.

0

请先登录再写评论。