[RESOLVED] Links to code in editor?
I keep notes and a basic explanation of the programs path/progression at the top of my code to reference when I need to implement changes or additions, or just to remember what I did.
Is it possible in VB.NET to also create links to sections of code or subs and build an index of sorts?
Re: Links to code in editor?
You can document your code using XML comments. Documentation here: https://docs.microsoft.com/en-us/dot...-code-with-xml
So for example, if I have two sub-routines named Sub1 and Sub2, and I wanted anyone looking at the code to know that Sub1 is important to Sub2, then I could do the following:
Code:
''' <summary>
''' here is a description that shows up in the IDE
''' </summary>
''' <see cref="Sub1()"/>
Private Sub Sub2()
' blah blah blah
End Sub
Now if I put my cursor over <see cref="Sub1()"/> and hit F12, I will jump to the Sub1 method.
Re: Links to code in editor?
That will do nicely. I can simply mouse over "Sub1()" and select/click from the resulting tool tip. Now I can reference the code I am explaining.
Thank you.
EDIT: Actually, this is not going to work as I intended, though it does work well for the purpose you described.