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.
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.
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.
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.
Tools -> Options ...
alt text http://img6.imageshack.us/img6/158/capturejo.png
Text Editor > C# > Formatting > New Lines > New line options for braces
Place open brace on new line for control blocks
. 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.
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