Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio - "{ }" settings

People also ask

How do I access Visual Studio settings?

In Visual Basic projects, you can access application settings at runtime by using the My. Settings object. On the Settings page, click the View code button to view the Settings.

How do I change Visual Studio settings?

To change your development settings after you open Visual Studio for the first time, follow these steps: Select Tools > Import and Export Settings from the menu bar to open the Import and Export Settings Wizard. In the Import and Export Settings Wizard, select Reset all settings, and then select Next.

Where are Visual Studio 2019 settings stored?

vssettings file in %userprofile%\Documents\Visual Studio 2019\Settings is in an installation-specific folder that is similar to %localappdata%\Microsoft\VisualStudio\16.0_xxxxxxxx\Settings.

How do I get to preferences in Visual Studio 2019?

For instance, Visual Studio Code has a "preferences" submenu in its file menu, whereas Visual Studio has most of its options available under "Tools->Options".


Go to Tools > Options > Text Editor > [Language, i.e.: C#] > Code Style > Formatting > New Lines

This is where you can set your new line options for braces.

See the image below for more clarification.

menu


Tools -> Options ...

alt text http://img6.imageshack.us/img6/158/capturejo.png


Text Editor > C# > Formatting > New Lines > New line options for braces

  • Uncheck Place open brace on new line for control blocks.
  • Probably want to uncheck put else on newline as well.

This is for Visual Stuio 2008, so I'm not sure that it's exactly the same in VS 2010:

Go to the Tools menu and open Options. Make sure that the Show all settings checkbox is checked. Open the Text Editor node and then the node for the language you want to change the setting for. Open the Formatting node and select the New Lines node. Here you can change when new lines are added to the code.

After installing Visual Studio I go in there and uncheck every option in the New Lines section.