473,378 Members | 1,577 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,378 software developers and data experts.

Comment tool.

I remember there is a tool which automatically put some simple comments
on the properties and methods. I cannot find it anywhere, can somebody
help me on this.
Nov 17 '05 #1
1 1592
Ok, I can only tell you about how to use it with C# or C++ but hopefully it
will help you.

While in the editor, above a class declaration, constructor or method, you
do three slashes /// and automatically you get a summary and a /summary tag,
often followed by other lines inserted by the editor naming the parameters
and you put in comments between the <param> and </param> tags. Be aware that
this feature doesn't work automatically within a method, but it does work
for properties. I don't know if manually putting in the tags will work but
it might.

Then you run the build code comments web tool under tools when you've
compiled the code and make sure that you uncheck the pesky treat tags as
code that is always on by default. Make sure your pages go to the expected
directory which is supposed to be ProjectNameDirectory/CodeCommentReport. It
is supposed to do this by default but does not on my machine.

On XP sp2, you might have the issue outline in this info below, but it
explains what to do, works well. There will be a warning box that tells you
that you should check the box to keep modified files open, do not check that
or you will have over 100 pages of trash to close. Here is the info. I would
have provided the URL, but the site is down ..

Build Comment Web Pages in VS 2003 and Windows XP SP2
If you use documentation created by Build Comment Web Pages in Visual Studio
2003, you will experience problems viewing the documentation after upgrading
to Windows XP SP2. Currently, you can download the release candidate for
testing purposes here:
http://www.microsoft.com/technet/pro...p2preview.mspx The
service pack includes numerous fixes to improve the overall security of
Windows and Internet Explorer. Unfortunately, one fix disallowed a tag that
was generated by the Build Comment Web Pages feature.

Workarounds

The easiest workaround is to use Visual Studio to do a Find and Replace to
change the tag in the documentation to one that is accepted by Internet
Explorer.

1. Go to Edit/Find and Replace/Replace in Files
2. In the Find what: type: <!-- saved from url=(0007)http:// -->
3. In the Replace with type: <!-- saved from url=(0014)about:internet -->
4. Ensure regular expressions is not checked.
5. In the look in type the directory where the web pages are stored.
6. Click Replace All to execute the search.

Background

The tag is that is the problem here is called the "Mark of the Web". IE
adds the Mark of the Web to web pages that are saved from the internet.
This way IE can detect that the content was originally from the internet
zone and it should be treated as such. In this instance, the page was not
saved from the internet but Visual Studio used http:// to force it to the
internet zone. In Windows XP SP2, the IE team did work to tighten up the
items which were permissable and http:// was accidentally excluded. The IE
team assures me that the original mark of the web that is generated by VS
2003 does not represent a security risk.

If you have any questions, please let me know.

-Sean Laberee

posted on Friday, July 16, 2004 5:07 PM by VSEditor
Comments
"Jianwei Sun" <js***********@gmail.com> wrote in message
news:eH**************@TK2MSFTNGP15.phx.gbl...
I remember there is a tool which automatically put some simple comments on
the properties and methods. I cannot find it anywhere, can somebody help me
on this.

Nov 17 '05 #2

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

Similar topics

16
by: qwweeeit | last post by:
In analysing a very big application (pysol) made of almost 100 sources, I had the need to remove comments. Removing the comments which take all the line is straightforward... Instead for the...
0
by: Serge calderara | last post by:
Dear all, I just discover that we can build a quite good lilbrary documentation using the tool Build Commnet Web page integarted in .Net, especially if we are many developper working on a...
1
by: JoseLuis | last post by:
I HAVE THIS Warning : What can I do to fix it ???? XML comment block must immediately precede the language element to witch its applies and next is the code qhen I doble click the...
4
by: Von Shean | last post by:
I want to generate comment pages which will contain only public functions. The option in IDE does not have any option for it. Can any one suggest any way/tool to do it? Also i have a dumb...
6
by: Andy | last post by:
Hello Is there an option in the Code Comment Tool, so that the values of constants are automatically commented? Or must I comment them manually? Thanks - Andy
3
by: feng | last post by:
Hi, I heard that since VS.Net 2003, there is a tool available for VB.Net that I can use to create XML comment, just like I can do under C#. Does anyone know where I can find this tool? Thanks
1
by: netcommander | last post by:
Hi all, Can anyone shed any light on how I generate the XML comment documents from the C# code-behind files in a ASP.NET web project in VS2005? I can't find any properties relating to it if I...
3
by: Martin P. Hellwig | last post by:
Hi all, I've been toying with python for about two years now. Not every day, just when I encounter something in my job (sysadmin) repetitively dull. The amazing thing is that like any other...
29
by: dbhbarton | last post by:
Had a thought that's grown on me. No idea if it's original or not- too inexperienced in programming- but I guess there's no harm floating it out there. Python wins big on readability, and...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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.