青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品

牽著老婆滿街逛

嚴以律己,寬以待人. 三思而后行.
GMail/GTalk: yanglinbo#google.com;
MSN/Email: tx7do#yahoo.com.cn;
QQ: 3 0 3 3 9 6 9 2 0 .

Visual Studio .NET的Doxygen 插件,不錯!

http://www.codeproject.com/macro/KingsTools.asp

Kings Tools

Kings Tools

Introduction

As good as Visual Studio .NET is, I still miss some features in it. But MS knew that they couldn't fulfill every wish so they provided a way to write addins. That's what I've done. Sure, most of the functions in my Tools could also be done with macros, but I wanted them all packed together with an installer.

Tools

  • Run Doxygen
  • Insert Doxygen comments
  • Build Solution stats
  • Dependency Graph
  • Inheritance Graph
  • Swap .h<->.cpp
  • Colorize
  • } End of
  • #region/#endregion for c++
  • Search the web

Run Doxygen

This command first pops up a dialog box in which you can configure the output Doxygen should produce. For those who don't know Doxygen: it's a free tool to generate source documentations. It can produce documentation in different formats like html and even windows help format! See http://www.doxygen.org/ for details. Since the dialog box doesn't offer all possible settings for doxygen, you can always edit the file Doxyfile.cfg manually which is created the first time you run it. All settings in that file override the settings you enter in the dialog box.

Doxygen configuration dialog

If you set Doxygen to generate html output, the resulting index.html is opened inside the IDE. A winhelp output (index.chm) will be opened outside the IDE.

The command available from the Tools menu builds the documentation for the whole solution. If you don't want that for example if you have several third party projects in your solution then you can build the documentation also for single projects. To do that the KingsTools add a command to the right click menu in the solution explorer.

If you want to update Doxygen to a newer version (as soon as one is released) simply overwrite the doxygen.exe in the installation directory. The same applies to the dot.exe.

TODO: find a way to integrate the generated windows help file into VS help.

Insert Doxygen comments

Doxygen needs comments that follow certain conventions to build documentation from. This part of the tools inserts them for you. Either from the right click menu in the code editor window or from the submenu under Tools->Kings Tools. Just place the caret over a method or class header. The inserted comment for a method or function would look like this:

				/**
 *
 * \param one
 * \param two
 * \param three
 * \return
 */
BOOL myfunction(int one, int two, int three);

You now have to simply insert a description in the second comment line and descriptions for each parameter of the function/method. And of course a description of the return value.

You can customize the function comments by editing the files "functionheadertop.txt", "functionparams.txt" and "functionheaderbottom.txt". Please read the comments inside those files on how to do that. If you don't want to change the function comments for all your projects then you can place any of those files into your project directory (that way it will be used for your project) or inside the folder of your source files (that way it will be used only for the files inside that specific folder).

The inserted comment for a class looks like this:

				/**
 * \ingroup projectname
 *
 * \par requirements
 * win98 or later, win2k or later, win95 with IE4 or later, winNT4 with IE4 
 * or later
 *
 * \author user
 *
 * \par license
 * This code is absolutely free to use and modify. The code is provided 
 * "as is" with no expressed or implied warranty. The author accepts no 
 * liability if it causes any damage to your computer, causes your pet to 
 * fall ill, increases baldness or makes your car start emitting strange 
 * noises when you start it up. This code has no bugs, just undocumented 
 * features!
 *
 * \version 1.0
 * \date 06-2002
 * \todo
 * \bug
 * \warning
 *
 */
				class CRegBase

The '\ingroup projectname' means that the class is inside the project 'projectname'. That statement helps Doxygen to group classes together. Insert the description of the class right after that statement. If you want to include pictures to illustrate the class, use '\image html "picture.jpg"'. For more helpful tags you can use please check out the Doxygen website. The '\par requirements' section you have to modify yourself to fit the truth of your class. It's not necessary for Doxygen, but I found it very useful to give that information inside a class documentation. The name after the '\author' tag is the currently logged in user. Maybe you want to change that too to include an email address.

You can customize the class comments by editing the file "classheader.txt" Please read the comments inside that file on how to do that. If you don't want to change the class comments for all your projects then you can place that files into your project directory (that way it will be used for your project) or inside the folder of your source files (that way it will be used only for the files inside that specific folder).

The last few tags should be self-explanatory. Under the line '\version' I usually insert short descriptions of what changed between versions.

Build Solution stats

This is a simple line counter. It counts all the lines of all files in your solution, grouped by projects. The generated html file with the counted lines (code, comments, empty) is then opened in the IDE. Since I haven't found a way to add a file directly to a solution and not to a project the file is just opened for view in the IDE.

Dependency and Inheritance graph

These two commands build graphs of the class relations in your solution. See my previous article about this. The difference to my old tool is that it now generates graphs for all projects in the solution and puts all the graphs in one single html page.

Swap .h<->.cpp

This is something a simple macro could also do: it swaps between header and code files. For better accessibility it also is on the right click menu of the code editor. Really nothing special but it can be useful sometimes.

Colorize

This tool goes through all files of the current solution and looks for class, function and macronames. It then writes them to a usertype.dat file, makes the IDE to read that file and deletes it again. After you run this tool, all class, function and macronames of your solution appear colored in the code editor. Default color is the same color as normal keywords, but you can change that under Tools->Options, in the Options dialog select Environment->Fonts and Colors.

If you don't want the colors anymore, just run the command 'disable coloring' and everything will be in normal colors again. I didn't want to overwrite some possible usertype.dat file already created by some user so the tool simply creates a temporary usertype.dat file instead. If you want to have the colors again the next time the IDE starts, you either have to rerun the command (doesn't take very long to execute) or change the code of the tool yourself.

} End of

Have you ever wrote a bunch of code which looked like this:

Braces without comments

Ok, I admit this isn't a very good style of programming, but sometimes it can't be avoided. And in those cases the code is horrible to read because you don't know which closing brace belongs to which opening statement without scrolling or using the macro 'Edit.GotoBrace' several times. This tool provides a function which inserts comments after the closing brace automatically. The code snippet above would look like this:

Braces with comments

Comments are only inserted for closing braces of if, while, for and switch statements.

If you don't want to insert comments automatically while editing, you can turn off this function. If you just don't want those comments at specific places you have to move the caret either upwards (instead of downwards which happens if you press enter) or click with the mouse so that the caret doesn't go to the line below the closing brace. Comments are also not inserted when the opening brace is less than two lines above.

#region/#endregion for C++

VS.NET introduced to possibility to outline portions of text in the code editor. That's a very useful feature wthat helps navigating through big bunches of code. But the outlined sections are not saved between sessions. VB and C# provide keywords to outline sections. In VB its '#Region' and '#End Region', in C# its '#region' and '#endregion'. Only for C++ MS didn't provide such keywords (at least I haven't found them yet). With this tool you can now enable that feature for C++ too. To prevent compiler errors for those who have not installed this tool I used '//#region' and '//#endregion' as the keywords. With the comment lines before the compiler won't complain. Use those keywords like this:

outlined sections

Whenever you open a document with such keywords the tool will automatically create outlining sections. The section are also created when you type the '//#endregion' keyword and a matching '//#region' is found. As you can see, you can easily nest the sections. The code above would then look like this:

outlined sections

outlined sections

This function can't be deactivated. If you don't want it, simply don't use those keywords :)

Search the web

These two small addons perform a simple web site search either in the google groups or on CP. Select a piece of text in the code editor, right click to pop up the menu and then select where to search for the selected text. That's all. The search results will be opened inside VS.NET.

right click menu

Install

To install the tools, just double-click the *.msi file and follow the instructions. If the tools are not automatically activated the next time you start the IDE, then please activate them under Tools->Add-In Manager. Make sure you select both the addin and the box 'startup'.

All additional files needed for the tools are also packed in the installer, including Doxygen and the dot files. So you don't have to grab them separately from the web.

Source

Full source code is provided with these tools. The addin is written in VB.NET cause first there was just one simple tool that I wanted immediately - and VB is good enough for that. Then the tool grew and I added more functions. So the code is surely not the best example for good programming (no plan, no structure -> chaos). But maybe it might still be of interest for those who want to write their own addins. It shows a way to create submenus and how to add a toolbar.

Revision History

24.06.03
  • fixed bug in Doxygen part: the path to the binaries weren't enclosed in ""
  • made necessary changes to make the addin work with VS.NET2003 (projectitems are now recursive!)
  • updated the Doxygen binaries to the newest version
  • the dialogs are now centered to the IDE
18.04.03
  • fixed some bugs in the }EndOf function
  • added template files for doxygen comments
  • fixed bug in the graph functions if the solution contained "misc" files
  • Doxygen 1.3 is now included
  • removed the toolbar - it slowed the editor down
  • for most commands disabled the check for project type (C++, C#, VB, ...) - if you use a function for a project type for what it isn't designed it just won't work...
04.10.02
  • enabled }EndOf and the solution statistics also for C# projects
21.9.02
  • fixed a bug in the }EndOf tool
  • fixed bug where Doxygen couldn't be started when a file was in the Solution->Misc folder
  • added possibility to run Doxygen for single projects (right click menu in solution explorer)
  • included newest Doxygen and Dot version
  • added a proper uninstaller. The uninstaller now deletes all added commands.
7.9.02
  • fixed a bug reported by Darren Schroeder
8.8.02
  • removed forgotten test code which caused annoying behaviour
  • made sure that for WinHelp output (Doxygen) also html output is selected
10.8.02
  • fixed a bug reported by Jeff Combs: now the addin is only loaded when the IDE is started (the IDE is NOT started when devenv is called with /build, /clean or /deploy command line switches!)
12.8.02
  • Run Doxygen now includes not only project directories but all directories of the project files.
  • The Toolbar can now be altered and the altered state is saved by the IDE
  • Uninstalling now works better: the toolbar is gone after the second start of the IDE after uninstalling without modifying the source.

posted on 2006-10-20 22:40 楊粼波 閱讀(4073) 評論(1)  編輯 收藏 引用 所屬分類: C++

評論

# re: Visual Studio .NET的Doxygen 插件,不錯! 2010-08-23 09:28 dress

These two small addons perform a simple web site search either in the google groups or on CP. Select a piece of text in the code editor,   回復  更多評論   

青青草原综合久久大伊人导航_色综合久久天天综合_日日噜噜夜夜狠狠久久丁香五月_热久久这里只有精品
  • <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            老鸭窝毛片一区二区三区| 香蕉成人伊视频在线观看| 狠狠久久五月精品中文字幕| 国产精品美女www爽爽爽视频 | 欧美日韩三级在线| 欧美成人视屏| 欧美日韩一区二区欧美激情| 欧美国产日韩xxxxx| 欧美jizz19性欧美| 欧美日韩综合在线| 国产日本欧美视频| 亚洲国产裸拍裸体视频在线观看乱了中文| 国产精品推荐精品| 亚洲电影在线观看| 亚洲午夜羞羞片| 久久手机免费观看| 99精品国产在热久久| 久久精品国产亚洲一区二区| 欧美成人精品h版在线观看| 国产精品v日韩精品v欧美精品网站| 国产酒店精品激情| 亚洲黄色毛片| 亚洲第一精品影视| 亚洲午夜av| 欧美 日韩 国产在线| 国产日韩欧美二区| 亚洲一级黄色av| 亚洲人成高清| 玖玖精品视频| 亚洲国产婷婷香蕉久久久久久99 | 亚洲午夜激情| 亚洲第一色在线| 亚洲欧美三级伦理| 激情久久婷婷| 亚洲欧美福利一区二区| 性做久久久久久久久| 欧美成年人视频网站| 欧美午夜精品理论片a级大开眼界| 国产乱码精品一区二区三区五月婷 | 老牛国产精品一区的观看方式| 欧美日韩亚洲网| 中文国产亚洲喷潮| 亚洲色图在线视频| 国产精品视频xxxx| 麻豆免费精品视频| 欧美一级日韩一级| 亚洲精品国产视频| 欧美精品一级| 亚洲欧美一区二区激情| 欧美一区二区三区视频在线| 亚洲欧洲精品一区二区精品久久久 | 国产精品热久久久久夜色精品三区| 欧美日韩色一区| 国产精品家庭影院| 欧美视频一区二区三区| 久久精品九九| 国产精品三区www17con| 亚洲精品中文字幕在线观看| 亚洲国产欧美一区二区三区久久 | 国产精品theporn| 久久午夜视频| 国产精品久久久久久影院8一贰佰| 国产精品久久国产精麻豆99网站| 国产伦精品一区二区三区高清| 亚洲精品1234| 久久久久在线观看| 欧美激情1区2区| 亚洲国产专区校园欧美| 麻豆成人在线观看| 亚洲国产精品传媒在线观看 | 99视频精品全部免费在线| 亚洲另类视频| 欧美日韩免费高清一区色橹橹| 麻豆91精品| 一本色道久久88亚洲综合88 | 亚洲精品视频在线播放| 久久久99国产精品免费| 国产一区日韩一区| 国产精品99久久不卡二区| 欧美精品播放| 亚洲欧美在线x视频| 一区二区欧美激情| 亚洲国产精品123| 亚洲欧洲久久| 美女精品网站| 国产精品影片在线观看| 一区二区三区欧美成人| 国产一区二区三区久久| 最新精品在线| 欧美高潮视频| 一本大道久久a久久综合婷婷| 国产精品无码永久免费888| 欧美第一黄色网| 久久一二三四| 欧美一区二区成人| 极品日韩久久| 欧美11—12娇小xxxx| 中文国产成人精品| 久久综合亚州| 午夜在线一区二区| 亚洲精品一二三| 一区二区精品国产| 国产精品综合av一区二区国产馆| 亚洲国产精品一区在线观看不卡| 亚洲美女啪啪| 亚洲人成人99网站| 久久久女女女女999久久| 亚洲深夜福利视频| 宅男噜噜噜66一区二区66| 亚洲欧洲综合另类在线| 亚洲男女自偷自拍| 亚洲婷婷在线| 久久综合综合久久综合| 亚洲欧美清纯在线制服| 欧美插天视频在线播放| 99ri日韩精品视频| 99re66热这里只有精品4| 久久国产精品久久久| 日韩午夜在线播放| 亚洲激情二区| 亚洲精品无人区| 亚洲精品视频在线观看网站 | 久久久人成影片一区二区三区| 午夜精品亚洲一区二区三区嫩草| 亚洲午夜激情免费视频| 亚洲欧美一区二区激情| 久久精品中文| 欧美人与性动交α欧美精品济南到| 欧美黑人多人双交| 国产精品美女在线观看| 亚洲成人原创| 免费在线播放第一区高清av| 欧美韩日视频| 欧美亚洲综合网| 国产欧美日韩伦理| 一区二区三区久久| 一区二区亚洲欧洲国产日韩| 欧美亚洲在线视频| 亚洲欧美在线磁力| 免费视频久久| 久久人人看视频| 国产精品自在在线| 亚洲最快最全在线视频| 亚洲精品一区二区三区婷婷月 | 欧美jizz19hd性欧美| 国产一区二区按摩在线观看| 亚洲免费观看高清完整版在线观看熊 | 欧美一级理论片| 99re66热这里只有精品3直播 | 亚洲国产精品综合| 美日韩丰满少妇在线观看| 久久激情视频| 国产欧美一区二区精品忘忧草| 91久久国产综合久久蜜月精品| 欧美日韩一区在线播放| 亚洲视频香蕉人妖| 亚洲一区二区免费在线| 欧美日韩性生活视频| 亚洲电影在线播放| 狠狠网亚洲精品| 免播放器亚洲一区| 久久久久国内| 亚洲国产精品ⅴa在线观看| 亚洲国产日韩一区| 欧美激情一区在线观看| 欧美韩日一区| 一区二区三区视频免费在线观看| 蜜月aⅴ免费一区二区三区| 狂野欧美一区| 美女国产一区| 一区二区黄色| 午夜亚洲激情| 免费久久精品视频| 欧美激情一区二区三级高清视频 | 亚洲一区免费| 欧美少妇一区二区| 亚洲欧美日韩精品久久| 国产精品二区影院| 亚洲欧美在线另类| 久久久噜噜噜久久久| 一区二区日韩| 国产精品无人区| 久久在线视频| 亚洲精品在线观看免费| 亚洲一区二区三区高清 | 亚洲精品一级| 午夜精品久久久久久久99黑人| 国产精品美女久久久久av超清| 亚洲伊人伊色伊影伊综合网| 亚洲久久一区| 久久精品道一区二区三区| 99re热精品| 午夜精品久久久久久99热软件| 欧美sm视频| 一本色道久久综合亚洲精品婷婷 | 91久久精品日日躁夜夜躁国产| 9色porny自拍视频一区二区| 国产精品久久久久一区二区三区共| 午夜精品一区二区三区四区 | 久久er精品视频|