'How to prevent the enter key from making a new line in Clion?

PHOTO 1 Here I press "Enter" key to complete the code.

But IDE will automatically get my code to a new line as is shown here PHOTO 2 ,which makes me uncomfortable.

How to turn off this? Any help will be appreciated!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source