<p>Trying to get my css / C# functions to look like this:</p>

<pre><code>body {
    color:#222;
}
</code></pre>

<p>instead of this:</p>

<pre><code>body 
{
    color:#222;
}
</code></pre>

<p>when I auto-format the code.</p>

[{'answer_id': 39573, 'author': 'FlySwat', 'author_id': 1965, 'author_profile': 'https://Stackoverflow.com/users/1965', 'pm_score': 5, 'selected': False, 'text': '<p>Tools -> Options -> Text Editor -> C# -> Formatting -> New Lines -> New Line Options for braces -> Uncheck all boxes.</p>\n'}, {'answer_id': 39574, 'author': 'Stormenet', 'author_id': 2090, 'author_profile': 'https://Stackoverflow.com/users/2090', 'pm_score': 9, 'selected': True, 'text': '<p><strong>C#</strong></p>\n<ol>\n<li>In the <em>Tools</em> Menu click <em>Options</em></li>\n<li>Click <em>Show all Parameters</em> (checkbox at the bottom left) (<em>Show all settings</em> in VS 2010)</li>\n<li>Text Editor</li>\n<li>C#</li>\n<li>Formatting</li>\n<li>New lines</li>\n</ol>\n<p>And there check when you want new lines with brackets</p>\n<p><strong>Css:</strong></p>\n<p><em>almost the same, but fewer options</em></p>\n<ol>\n<li>In the <em>Tools</em> Menu click <em>Options</em></li>\n<li>Click <em>Show all Parameters</em> (checkbox at the bottom left) (<em>Show all settings</em> in VS 2010)</li>\n<li>Text Editor</li>\n<li>CSS</li>\n<li>Format</li>\n</ol>\n<p>And than you select the formatting you want (in your case second radio button)</p>\n<p><strong>For Visual Studio 2015:</strong></p>\n<p>Tools → Options</p>\n<p>In the sidebar, go to Text Editor → C# → Formatting → New Lines</p>\n<p>and uncheck every checkbox in the section <em>&quot;New line options for braces&quot;</em></p>\n<p><a href="https://i.stack.imgur.com/Drc10.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Drc10.png" alt="enter image description here" /></a></p>\n<p><strong>For Mac OS users:</strong><br />\nPreferences → Source Code → Code Formatting → choose what ever you want to change (like C# source code) → C# Format → Edit -→ New Lines</p>\n'}, {'answer_id': 39580, 'author': 'Huppie', 'author_id': 1830, 'author_profile': 'https://Stackoverflow.com/users/1830', 'pm_score': 2, 'selected': False, 'text': "<p>For CSS you'll need the 'Semi Expanded' option.</p>\n"}, {'answer_id': 39586, 'author': 'Seb Nilsson', 'author_id': 2429, 'author_profile': 'https://Stackoverflow.com/users/2429', 'pm_score': 4, 'selected': False, 'text': '<p>The official MS guidelines <em>(at the time in 2008)</em> tells you to have the curly brace on the same line as the method/property/class and many other things which are not enforced in Visual Studio.</p>\n\n<p>You can change all these auto-text settings under:<br />\n<strong>Tools -> Options -> Text Editor -> [The language you want to change]</strong></p>\n\n<p><strong>UPDATE:</strong> This was based on the book "Framework Design Guidelines" written by some of the core-people from the .NET-team. If you look at the source-code for the likes of ASP.NET MVC, <strong>this is no longer accurate</strong>.</p>\n'}, {'answer_id': 4420710, 'author': 'stoofy', 'author_id': 539393, 'author_profile': 'https://Stackoverflow.com/users/539393', 'pm_score': 2, 'selected': False, 'text': "<p>There is a specific formatting setting in VS 2008/2010 to keep the open brace on the same line:</p>\n\n<p><strong>Click Tools->Options<br/> Select 'CSS' within 'Text Editor' tree node<br/> Select 'Formatting' under 'CSS' node<br/> Click 'Semi-expanded' radio button</strong></p>\n\n<p>You will see a preview what the various radio buttons avail will do to the formatting </p>\n"}, {'answer_id': 17557791, 'author': 'Gabriel Nahmias', 'author_id': 2285405, 'author_profile': 'https://Stackoverflow.com/users/2285405', 'pm_score': 3, 'selected': False, 'text': '<p>Go to <strong><code>Tools -&gt; Options -&gt; Text Editor -&gt; CSS -&gt; Formatting</code></strong>. Click "Semi-expanded," which matches the style you defined.</p>\n\n<p><img src="https://i.stack.imgur.com/FZkod.png" alt="Options screen"></p>\n'}, {'answer_id': 27399305, 'author': 'Luke', 'author_id': 894792, 'author_profile': 'https://Stackoverflow.com/users/894792', 'pm_score': 1, 'selected': False, 'text': '<p>If you\'re looking for this option within <strong>Visual Studio 2014</strong>, then it\'s under advanced and is now a \'Brace positions\' drop down box:</p>\n\n<p><img src="https://i.stack.imgur.com/QbA8S.png" alt="enter image description here"></p>\n'}, {'answer_id': 59040000, 'author': 'Reitenator', 'author_id': 6286145, 'author_profile': 'https://Stackoverflow.com/users/6286145', 'pm_score': 2, 'selected': False, 'text': '<p>For Visual Studio Mac OS (Community edition) version 8.3 you need to do the following:</p>\n<p>Preferences -&gt; Source Code (in left menu) -&gt; Code Formatting -&gt; C# source code -&gt; C# Format -&gt; Press Edit</p>\n<p><a href="https://i.stack.imgur.com/q7K1C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/q7K1C.png" alt="enter image description here" /></a></p>\n<p>Select <strong>New Lines</strong> from the Category dropdown menu:</p>\n<p><a href="https://i.stack.imgur.com/lA8Ci.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lA8Ci.png" alt="New Lines Category" /></a></p>\n<p>Deselect each option in the <strong>New line options for braces</strong>:</p>\n'}]
['https://Stackoverflow.com/questions/39561', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/26/']