Author |
Topic |
|
Adequat
Tomato Guru
182 Posts |
Posted - Nov 17 2008 : 02:31:19 AM
|
A you may know, Doxygen is a standard to document one's code. Apart the automatic documentation extraction, it is also possible to use Doxygen to build a manual from explicit comments in code. What would be great, is to have VA to support a few key Doxygen tags. Example:
In one source code I have the tag:
\\page shortcut_system Shortcut System
I would simpy like to have VA lists this tag (\\page shortcut_system) in its symbol list, to be able to jump to the right place any time.
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Nov 18 2008 : 08:43:21 AM
|
Have you considered using the IDE's Find in Files feature?
In general terms you are asking for VA to look for anything matching the following pattern in all files, which will quickly turn into the request to search all files for the following regular expression.
You can automate triggering a specific IDE find with an IDE macro if that helps. |
zen is the art of being at one with the two'ness |
|
|
url
Starting Member
1 Posts |
Posted - Nov 19 2008 : 11:21:22 PM
|
I use doxygen & I use the VA snippets to provide the basics of my doxygen comments, what would be nice is if the VA snippets worked within comment blocks so I can add extra doxygen tags when they are needed. This would save me heaps of time writing formatted comments.
As far as I can see I can't do this with the version of VA that I am using. |
|
|
Adequat
Tomato Guru
182 Posts |
Posted - Nov 22 2008 : 02:27:26 AM
|
Doxygen is not the only tool that uses /* */ comments to embed some information in files. Browsing through this would be useful... hence VA could provide a feature like: the user sets a number of RegEx patterns which are evaluated for each comment block; found symbols are then added to the VA symbol list that the user can access. Of course, without this, I am currently using the IDE's find tool, but this is not the same at all as browsing +? la VA! |
|
|
feline
Whole Tomato Software
United Kingdom
19024 Posts |
Posted - Nov 24 2008 : 08:50:27 AM
|
Snippets while writing comments. This has come up several times before. If we enable snippets in comments then they are going to get into the way. You probably have a snippet with the shortcut "if", but "if" is also a common English word. You probably do not want to replace every instance of "if" with an if loop.
If you are using // style comments then you can simply start a new line, not type the // at the beginning, and type the snippet shortcut instead to insert the comment section you want.
Adequat we are considering a form of Find References that searches comments, but this would only search for fixed strings, not for regular expressions:
case=9563
I do see the appeal of using regular expressions to define symbols, but I also see some of the possible support problems. It won't be long before people start trying to write complex regular expressions. This has two problems. Firstly every tool I use that has regular expression support does so differently *sigh* Plus it is rather easy to write slow / nasty regular expressions that will cause performance problems when run across your entire solution. |
zen is the art of being at one with the two'ness |
|
|
|
Topic |
|