C
C#2y 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
JakenVeina2y 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
Juliandyce2y ago
ask chat gpt if it comes to problems with settings
Tvde1
Tvde12y ago
@juliandyce please don't post in help questions with "ask chatgpt". It's unhelpful
Juliandyce
Juliandyce2y 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
JakenVeina2y 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.OP2y ago
i did that, nothing works
JakenVeina
JakenVeina2y ago
then VS doesn't support it
Accord
Accord2y 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.
Want results from more Discord servers?
Add your server