Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Hyperlinks in Source comments
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

peterchen
Tomato Guru

126 Posts

Posted - May 18 2006 :  12:15:23 PM  Show Profile  Reply with Quote
An idea that crossed my mind:

couldn't a certain syntax in the comments be made clickable, and lead to a (configurable) URL?

I'd like to do things like these:

[bugs:712] redirects to my bug tracker, bug number 712
[msdn:CreateFile] links to MSDN
[wiki:IsIsolaitonActive] links to a page in our software docuumentaiton wiki
etc.

The prefix & URL coul be configured in a list, e.g.

bugs=http://bugtracker/bug.asp?ID=*
msdn=http://www.google.com/custom?_=&sitesearch=msdn.microsoft.com&q=*
wiki=http://localhost/devwiki/?*

(where * is replaced by the URL-encoded part between : and ]

The syntax is just a first idea, and the hyperlinks should probably be 'active' only if Ctrl (or whatever) is held down, too.

I'd say it's important to keep the simplified format in the source for readablility, and for adjusting the "redirects".


Would that be possible? What do other users think?

feline
Whole Tomato Software

United Kingdom
19020 Posts

Posted - May 18 2006 :  2:27:57 PM  Show Profile  Reply with Quote
in VS2003 and VS2005 there is the option:

IDE tools menu -> Options -> Text Editor -> All Languages -> Enable single-click URL navigation

this seems to be what you are after, so long as you can get the IDE to pick up your URL format.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000