Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio code formatting

I've been using Visual Studio as my main IDE for a while now (I still use Emacs for some personal projects, though).

I like the way Emacs formats C/C++ code and I'd like to convince Visual Studio use similar conventions for C# code. For instance, in Emacs, a C function call looks like:

functionName(argument1,
             argument2,
             argument3);

while in the C# code formatted by Visual Studio a function call looks like:

functionName(argument1,
    argument2,
    argument3);

which seems worse to me.

Is there a way to tweak Visual Studio code formatting rules? Any plugins that can handle that?

Many thanks,

like image 693
Miron Brezuleanu Avatar asked Nov 14 '08 07:11

Miron Brezuleanu


1 Answers

Tools > Options > Text Editor > C# > Formatting

and

http://www.jetbrains.com/resharper/features/code_formatting.html#Code_Formatting

like image 62
Ed Guiness Avatar answered Oct 10 '22 02:10

Ed Guiness