LabVIEW Idea Exchange

cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos
Barnsey

comment icon for large comments.

I find that my code window quickly becomes filled up with comments and notes.  Could we, maybe, have a small comment icon, which we can put in the code and which displays the comment when you hover your mouse pointer over it? 

 

  My present workaround is to put larger comments in the documentation window and number them, so that I just have to put a reference number in the code.  Maybe these two documentation devices could be dynamically linked together somehow.

4 Comments
oenk
Member

Just a small workaround for you

(I found it somewhere in a forum, either here over at lavag.org or in labviewform.de, not sure anymore and my appologies to the author for not citing her/him)

 

Place a string constant to your code and add the code comment to the "Description and Tip" of this constant.

After that you can see your comment in the Context Help

 

screenshot.png

 

If you put this string constant in a VI and store it somewhere on your harddisk you could add it to your favorite tools palette for instance (select in the "Edit Controls and Functions Palette the "Place VI contents"). Capture.PNG

 

After that add it to QuickDrop and you should be good to go...

 

Cheers,

\c

 

BTW: there is still a need for the "how to document your code" issue

Barnsey
Member

Hi oenk,

 

   Wowww!  What a brilliant idea!  I reckon  I will uswe that one a lot in the future,

 

     Thanks,

 

   Barney

tst
Knight of NI Knight of NI
Knight of NI

This has also been suggested multiple times. This is the earliest - http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Description-and-Tip-like-Help-Hint-Comments-for-Block-...


___________________
Try to take over the world!
Darren
Proven Zealot