C
C#13mo ago
ki.

❔ Formatting braces in Visual Studio

Hello, for anyone coding using Visual Studio 2022, I'm having an annoying problem with the cursor placiment and it putting the close brace on a new line automatically. What it does now is this:
if (a == b) {
|}
if (a == b) {
|}
"|" being where the cursor places itself automatically just by my typing the open brace. If possible, I'd like it to be something like this:
if (a == b) {
|
}
if (a == b) {
|
}
Again the "|" being where the cursor is, thanks.
8 Replies
JakenVeina
JakenVeina13mo ago
"Options" => "Text Editor" => "C#" is where all of the settings for auto-completion live there's a lot of them you're gonna have to play with them until you find a combination that suits you
Juliandyce
Juliandyce13mo ago
ask chat gpt if it comes to problems with settings
Tvde1
Tvde113mo ago
@juliandyce please don't post in help questions with "ask chatgpt". It's unhelpful
Juliandyce
Juliandyce13mo ago
i just said that chat gpt can give the best awnsers when u wanna know more about settings because his problem is pretty special to know as a human
JakenVeina
JakenVeina13mo ago
chatgpt actually gives horrible answers to almost any specific questions, cause it's not built to care about facts it's built to sound like it's human
ki.
ki.13mo ago
i did that, nothing works
JakenVeina
JakenVeina13mo ago
then VS doesn't support it
Accord
Accord13mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.