473,385 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

VS2005 c# multi-line comments

Hi,

If I start a multi-line comment in a c# file with /* then when I press
enter, I get an asterisk indented on the next line.
I want to prevent this from happening, as it's getting really annoying.
I've been through all the settings but I couldn't see one that might
change this behaviour - although I would have thought it should be there
somewhere!

Can anybody tell me how to change this behavoiur?

Thankyou.
Paul
Aug 9 '06 #1
2 2530
Paul Cheetham wrote:
Hi,

If I start a multi-line comment in a c# file with /* then when I press
enter, I get an asterisk indented on the next line.
I want to prevent this from happening, as it's getting really annoying.
I've been through all the settings but I couldn't see one that might
change this behaviour - although I would have thought it should be there
somewhere!

Can anybody tell me how to change this behavoiur?

Thankyou.
Paul
Tool Options Formatting Smart comment editing
Aug 9 '06 #2
David,
Tool Options Formatting Smart comment editing
This option is not available in Visual Studio 2005 which the original poster
is using. In VS2005, one needs to use this option instead:

Tools Options Text Editor C# Advanced Generate XML documentation
comments for ///.

Although the name of the option only speaks about the /// comments (three
slashes), this option also affects the auto-creation of a star character
when one types in /* (slash star) and presses Enter. With this option off,
the star won't be generated automatically on the new line.

However, one doesn't need to disable this option altogether, as it can be
useful sometimes. Instead, one can type in /* and then press
Ctrl+Shift+Enter to move to the next line. The star won't be automatically
added. The Ctrl+Shift+Enter key corresponds to the Edit.LineOpenBelow action
and can be customized using Tools Options Environment Keyboard.

A list of the Visual Studio 2005 keyboard shortcuts is available for example
here:

http://www.codinghorror.com/blog/fil...0Shortcuts.htm

Another useful way to comment a block of code (as I assume the original
poster is doing) is to select a block of code, and then press Ctrl+K,C to
comment it. To uncomment, one has to press Ctrl+K,U.

Hope this helps.

--
Regards,

Mr. Jani Järvinen
C# MVP
Helsinki, Finland
ja***@removethis.dystopia.fi
http://www.saunalahti.fi/janij/
Aug 11 '06 #3

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

Similar topics

5
by: GaryDean | last post by:
(my original post was inaccurate but this post accurately describes what I think is a very bad vs2005 bug) short description... Deleting a dataset and recreating it from the dataadapter causes...
7
by: Frank Rizzo | last post by:
Is it me or is the speed of VS2005 actually slower than VS2003? The startup is pretty bad - even though I changed VS to display an empty environment. When I create a new form and want to change...
1
by: GaryDean | last post by:
I notice that there is still no tab control in vs2005. That seems like a strange omission. Are we left with the only choice to use those I.E. Webcontrols? (maybe it's still because we don't...
3
by: Doug | last post by:
I'm having problems w/ the VS2005 debugger with C#. It blows past any breakpoints in even the simplest "Hello World" console application. I can't do any step-by-step debugging. I've provided the...
15
by: Joseph Geretz | last post by:
OK, I'll admit it up front - I just don't get it. Here's our previous VS2003 development model. Developers develop the WS solution on their own workstations, using their own IIS web servers...
5
by: guy | last post by:
http://blogs.msdn.com/ericnel/archive/2006/10/17/top-level-technologies-products-not-supported-on-windows-vista.aspx are MS really saying that they do not have a development enviropnment for...
8
by: Peter | last post by:
Hi,everybody I'm a Newbie to ASP and ASP.NET. I know both Visual Web Developer and VS2005 can develop ASP.NET. Which one should I choose? Peter
0
by: =?Utf-8?B?U3RldmUxMjM0?= | last post by:
We are Currently in a multi developer environment, and just received a new computer and i am unable to load a c# project. When i try to load it i get .....csproj can not be opened. The project type...
2
by: colin | last post by:
Hi, I seem to have introduced a probem into my application wich cuases the IDE to hang when I switch from debug to reease mode. it doesnt even consume any cpu %, just sits there, with the...
2
by: Ronald S. Cook | last post by:
If I understand correctly, the framework version and Visual Studio version are not intertwined? Assuming so, how do I (first) find out what framweork my VS2005 ASP.NET application is targeting...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.