I use Visual Studio for Mac and the curly brackets in my code are not indented automatically and they are aligned to the left.
Have somebody encountered this issue? How can I fix it?
.
There are several ways in which you could type curly braces. If it is a windows keyboard you can do (alt+123) for '{' and (alt+125) for '}'. On a Mac the shortcuts are (shift + alt + 8) for '{' and (shift + alt + 9) for '}'.
How do I indent in Visual Studio? Visual studio's smart indenting does automatically indenting, but we can select a block or all the code for indentation. Use either of the two ways to indentation the code: Shift + Tab , Ctrl + k + f .
You can use combination of altGr and the curly brace keys.
How can I type curly brackets on a Macbook Air?. Finally I found how: Shift + Alt + 8 for "{" or Shift + Alt + 9 for "}". I guess it is in the same number position as the normal brackets: Shift + 8 = "(" and shift + 9 = ")". For Curved brackets Alt + 8 = "[" and Alt + 9 = "]".
Preferences
Source Code
Source Code
; Select Code Formatting
C# Source Code
C# Format
tab in the new page then press the Edit
buttonIndention
to New Lines
in the Category
sectionNow, you can set your custom format settings as you want...
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With