Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Friday, February 2, 2018 6:01 PM | 1 vote
In VS on Windows I was used to when opening a curly bracket and pressing enter it automatically moving the bracket to a new line (I'm using c#). Since installing VSC 2017 on my Mac it keeps the bracket on the same line. I can't find anything under preferences/text editor to change this behaviour. Does anyone know where this is?
All replies (5)
Friday, February 2, 2018 9:48 PM
In the Windows VS I don't know what "preferences" are so that might be unique to the Mac version. For the Windows version there are very many languages listed under Text Editor so we can customize those options based on the language. Are you sure there are no languages in there?
Sam Hobbs
SimpleSamples.Info
Saturday, February 3, 2018 12:32 AM
Under Text Editor/Behavior I have:
XML
CSS
HTML
JSON
LESS
Scss
And under under Source Analysis there's C#, but that's just a long list of whether to show warnings or errors.
Monday, February 5, 2018 8:25 AM
Hi Rikroka,
Welcome to the MSDN forum.
>> installing VSC 2017 on my Mac it keeps the bracket on the same line.
I am sorry that I feel confused about your issue, please kindly offer me more information so that I can better understand.
Did you say VSC 2017 is visual Studio 2017 Community? What version are you using?
I check this issue on windows environment, I create a C# Class Library (.NET Framework) in Visual Studio Community 2017 version 15.4.3 on windows, when I open a curly bracket of left and pressing enter, it automatically opening the right curly bracket and moving the cursor to a new line.
>> I can't find anything under preferences/text editor to change this behaviour.
Based on my knowledge, we could go to Tools -> Options -> Text Editor ->[Language: C#] ->Formatting ->New Line, set the new line options for braces.
Looking forward your reply.
Regards,
Judyzh
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].
Wednesday, February 7, 2018 8:06 PM | 1 vote
I'm using Visual Studio Community 2017 for Mac. This is what I see:
Thursday, February 8, 2018 7:24 AM
Hi Rikroka,
I test use “Visual Studio Community 2017 for Mac”. It works fine in my side.
Please set Editor Behavior under Visual Studio > Preferences... > Text Editor > Behavior.
Reference: /en-us/visualstudio/mac/editor-behavior
If above method could not help you, please repair your Visual Studio Community 2017 for Mac.
Regards,
Judyzh
MSDN Community Support
Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].