Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Curly brackets indention in Visual Studio for Mac

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?

here.

like image 868
morkan Avatar asked May 02 '18 11:05

morkan


People also ask

How do you put curly brackets on a Mac?

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 code in Visual Studio for Mac?

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 .

How do I make curly brackets in Visual Studio?

You can use combination of altGr and the curly brace keys.

How do I make curly brackets in Word for Mac?

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 = "]".


1 Answers

  1. Open the Preferences
  2. Select Source Code
  3. Under the Source Code; Select Code Formatting
  4. Select C# Source Code
  5. New page popped-up
  6. Select C# Format tab in the new page then press the Edit button
  7. Change Indention to New Lines in the Category section

Now, you can set your custom format settings as you want...

First Page Popup Page

like image 64
Gokalp Altun Avatar answered Sep 21 '22 23:09

Gokalp Altun