| Author |  Topic  |  | 
              
                | grandchainJunior Member
 
   
 
                United Kingdom22 Posts
 | 
                    
                      |  Posted - Dec 17 2008 :  08:51:35 AM     
 |  
                      | Hi, 
 I often find myself hovering over a function or macro (C++) to try to find out which file it is defined in.  This information isn't there, so I have to click on the symbol and then go to definition.
 
 It would be really nice if the tooltip could include the header file(s) it's defined in as well as the prototype and header comment.
 
 Cheers,
 
 Ian
 |  | 
              
                | felineWhole Tomato Software
 
      
 
                United Kingdom19247 Posts
 | 
                    
                      |  Posted - Dec 18 2008 :  12:33:31 PM     
 |  
                      | VA will show you comments in tooltips if you turn on: 
 VA Options -> Advanced -> Display -> Display comments from source files when available
 
 Out of interest why do you want to know which file something is defined in?  Is this because you want to add a #include to make the code work?  Or some other reason?
 |  
                      | zen is the art of being at one with the two'ness
 |  
                      |  |  | 
              
                | grandchainJunior Member
 
   
 
                United Kingdom22 Posts
 | 
                    
                      |  Posted - Dec 19 2008 :  02:23:30 AM     
 |  
                      | > Is this because you want to add a #include to make the code work? 
 That's usually it.  I've used a function, VisualAssist has helped me get the name right, but I can't remember which of the many headers it's hiding in and now the compiler's complaining...
 
 > VA will show you comments in tooltips if you turn on:
 > VA Options -> Advanced -> Display -> Display comments from source files when available
 
 That's what I'm already using and would like extended.
 
 Cheers,
 
 Ian
 |  
                      |  |  | 
              
                | felineWhole Tomato Software
 
      
 
                United Kingdom19247 Posts
 | 
                    
                      |  Posted - Dec 19 2008 :  11:26:47 AM     
 |  
                      | We are working on a feature to suggest the required #include statement for a given symbol: 
 case=226
 
 which should help here
  
 The comments in tooltips, what do you mean by extended?  Do you simply mean adding the file name, or do you mean that you have cases where there are comments that are not showing up?
 |  
                      | zen is the art of being at one with the two'ness
 |  
                      |  |  | 
              
                | grandchainJunior Member
 
   
 
                United Kingdom22 Posts
 | 
                    
                      |  Posted - Dec 19 2008 :  6:20:53 PM     
 |  
                      | quote:Originally posted by feline
 
 We are working on a feature to suggest the required #include statement for a given symbol:
 
 
 
 Excellent!
 
 
 quote:
 The comments in tooltips, what do you mean by extended?  Do you simply mean adding the file name, or do you mean that you have cases where there are comments that are not showing up?
 
 
 
 Just adding the file name, as in the first post.
 
 Thanks,
 
 Ian
 |  
                      |  |  | 
              
                | supportWhole Tomato Software
 
      
 
                5566 Posts | 
                    
                      |  Posted - Jan 27 2009 :  10:23:15 PM     
 |  
                      | case=226 is implemented in build 1715 Hover over an unrecognized symbol and choose "Add include xxxx" from the refactoring context menu.
 
 
  |  
                      | Whole Tomato Software, Inc.
 |  
                      |  |  | 
              
                | grandchainJunior Member
 
   
 
                United Kingdom22 Posts
 | 
                    
                      |  Posted - Jan 28 2009 :  04:09:57 AM     
 |  
                      | quote:Originally posted by support
 
 case=226 is implemented in build 1715
 Hover over an unrecognized symbol and choose "Add include xxxx" from the refactoring context menu.
 
 
 That's brilliant, thanks.  I've got 1715 installed now so I'll give it a try.
 
 Cheers,
 
 Ian
 |  
                      |  |  | 
              
                |  |  Topic  |  |