S
S
sudo rm -rf /2017-04-22 12:03:11
C++ / C#
sudo rm -rf /, 2017-04-22 12:03:11

How to disable auto wrapping of else to a new line in visual studio (c++)?

Recently moved to Visual Studio. I decided to install the 2017 version. Skin in C++. One of the inconveniences was that when you try to write this:

} else {

}

it turns out this:
} else 
{

}

This happens immediately after "{" is placed after the word "else".
At first glance, the problem may seem insignificant, petty, but such writing causes aesthetic dissatisfaction for me, which, firstly, reduces concentration at work, and secondly, it takes time to transfer my hand to the mouse in an attempt to fix this rubbish !!
People who understand the editor, please save the lamer perfectionist!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
maaGames, 2017-04-22
@MaxLevs

tools/options/text editor/c++/formating
there are a bunch of auto-formatting options.

T
taktik, 2017-04-22
@taktik

What for? You don't write in Java.
It is customary for plus signs to write in this style:

if (...)
{
}
else if
{
}
else
{
}

You can make sure to look at the source codes of different projects on github.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question