473,513 Members | 3,317 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Is there an option to change auto-bracket source code formatting ?

After installation of Visual CSharp Studio the current settings of the source code editor
are not suitable for me.

The brackets are automaticlly set in front of the lines e.g.

if (.......)
{
statement ...
}

I would like to change it this automatic bracket inserting to a style like:

if (.....) {
statement .... }
or (when this is not possible) to turn auto insertion completely off.
How do I do this ?

Is there a way of re-formatting an already existing source code to "my" style
or are there only settings for new brackets ?

Just a notice: I don't want to start a discussion about the best bracket source code style.
I only would like to change it.

Sven

May 24 '06 #1
1 3519
On 24 May 2006 10:58:37 GMT, sv*****@mail.com (Sven Fischer) wrote:
After installation of Visual CSharp Studio the current settings of the source code editor
are not suitable for me.

The brackets are automaticlly set in front of the lines e.g.

if (.......)
{
statement ...
}

I would like to change it this automatic bracket inserting to a style like:

if (.....) {
statement .... }
or (when this is not possible) to turn auto insertion completely off.
How do I do this ?

Is there a way of re-formatting an already existing source code to "my" style
or are there only settings for new brackets ?

Just a notice: I don't want to start a discussion about the best bracket source code style.
I only would like to change it.

Sven


Why do you want it that way, that isn't..... just kidding ;)
You mean Visual Studio I guess? Try Tools/Options -> Text
editor/C#/formatting/New Lines

--
Ludwig Stuyck
http://www.coders-lab.be
May 24 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
8064
by: David Clark | last post by:
Hi I have two list boxes( i.e. SELECT OPTION ), one is for STATE and second is for CITY. If I change the STATE, CITY should also be updated and of course it will be having respective cities How to accomplish this ? I need quick reply, plz Thnaks
2
2090
by: Eric Tuomikoski | last post by:
Im having trouble with server side ASP with Javascript. I have an ADO recordset that returns a list of Times example: 7:00AM. I then populate the option box with the results. (see below) The problem is I have a variable called Item_Start, that contains a time that is determined from another procedure. I simply wish to auto select the option...
7
9355
by: Li Pang | last post by:
Hi I built an app of one .exe and several .dlls. I'd like to know how to force to change the version of dll everythime I rebuild the app Thank
0
1368
by: PkRichard | last post by:
I want to change the x axis of my mschart. I can change the y axis with the following commando: With Chart1.Plot.Axis(MSChart20Lib.VtChAxisId.VtChAxisIdY).ValueScale .Auto = False .Minimum = 10 .Maximum = 20 End With
3
2135
by: sarjenwd | last post by:
Hello, ASP newby here. I have created a database with two data fields and an auto number ID in Access. I have set up an select box to display the categories field in the database and a textarea to display it related value (multiline, multi column). I can't seem to get the selected value from the select box to display in the textarea when...
18
2857
by: Poldie | last post by:
How do I turn it on? I'm using vb 2005 in visual studio 2005 sp1. In my web.config I have: <compilation debug="true" strict="true" /> In my Tools/Options/Projects and solutions/vb defaults I have option strict on. In my .vb file I have:
4
2039
by: rebeccatre | last post by:
please help me with this, <style> #a, option.message {background-color: green; color: white;} #b, option.message {background-color: yellow; color: black;} </style> <select id="thisselect"> <option id="thisone" class="message">THANK YOU</option> </select>
14
9189
by: The Natural Philosopher | last post by:
This is a nasty one and I can't see my way out of it. I have a bunch of select statements in a form, and each select statement has an onchange="do_something(this)" in it, and this works nicely..except when there is only ONE OPTION in a given select. It seems you cannot 'onchange' a single option! Well, that is reasonable. The trouble...
3
52225
by: Jason Carlton | last post by:
Is there a way to change the font-family and font-size for each individual option in a select menu? Something along the lines of: <select size="1"> <option style="font-family: Arial; font-size: 8px">One</option> <option style="font-family: Tahoma; font-size: 10px">Two</option> <option style="font-family: Verdana; font-size:...
1
1384
by: Carl Johansson | last post by:
I think I'm going nuts! I have a perfectly fine exe assembly built with Microsoft Visual C# 2008 Express Edition. When executed from my local hard drive it runs as exactly as expected. However, when trying to launch it from a network drive it just won't run. One suggestion I saw was to start the "Microsoft .NET Framework 1.1 Wizards" and run...
0
7177
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7394
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7559
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7123
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
7542
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
3248
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
1
811
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
470
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.