Before logging an issue, please update to the latest release of Visual Micro from the Downloads Page.

When Logging a Support Issue in the Forum, please ensure you have also:-

  • Enabled vMicro > Compiler > Show Build Properties
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
  • Click the Reply button and attach as .txt file OR
  • Click here to Email us with the file attached, and a link to your post
Support requests without the output above may be impossible to answer, so please help us to help you
 
Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic improvement that I think is smart (Read 2456 times)
JakobRasmussen
Newbies
*
Offline


Posts: 2
Joined: Mar 28th, 2019
improvement that I think is smart
Mar 28th, 2019 at 5:40pm
Print Post  
When you create a variable, or #define something, it would be nice if you could make a note / explanation for what you create. When you move the mouse over the name of the variable / const / define, a popup will display the text.
It may already exist, but I haven't found it.
Regards Jacob
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: improvement that I think is smart
Reply #1 - Mar 28th, 2019 at 5:46pm
Print Post  
Hi, if you use c++ code comments then visual studio will show them as tips.

For example hovering i anywhere in the code would show the tip or hint "i is the count for x"

Code
Select All
//i is the count for x
int i = 0;
 




This works for functions too. You can also use /* multi line comments */

Code
Select All
/*
 multiple line comments
 doc line 2
*/
void setup(){

}
 


« Last Edit: Mar 28th, 2019 at 5:47pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
JakobRasmussen
Newbies
*
Offline


Posts: 2
Joined: Mar 28th, 2019
Re: improvement that I think is smart
Reply #2 - Mar 28th, 2019 at 10:23pm
Print Post  
I don't think you understand what it means. Here is an example:

Code (C++)
Select All
#define Reset 2
pin mode (Reset, input);
50 lines later
Digitalread (Reset);
40 lines later
Digital Read (Reset); 


What I want is when I place the mouse on one of the 4 pieces. "Reset", then a small popup will open and display a text as I have written "example; This is reset button".
Now, when I place the mouse on "Reset", a small popup appears and shows "#define Reset 2". I want my own text in popup

I already use // or / * * /.
« Last Edit: Mar 28th, 2019 at 10:40pm by Tim@Visual Micro »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: improvement that I think is smart
Reply #3 - Mar 28th, 2019 at 10:41pm
Print Post  
If you already use /**/ or // why didn't you show that in your example? Smiley

Which IDE and version are you using?
« Last Edit: Mar 28th, 2019 at 10:47pm by Tim@Visual Micro »  

Please Register or Login to the Forum to see File Attachments
Back to top
WWW  
IP Logged
 
JakobRasmussen
Newbies
*
Offline


Posts: 2
Joined: Mar 28th, 2019
Re: improvement that I think is smart
Reply #4 - Mar 30th, 2019 at 5:33pm
Print Post  
Visual Studio 2015 ver. 14.0.25431.01 Update 3
Arduino 1.8.9
I hope, this is the Information you ask for
The example you have shown me is, how I want it. Smiley
I have typed your example into IDE, and when I place the mouse on the xyz variable, only the text "#define xyz 2" appears in the popup, and no more.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12076
Location: United Kingdom
Joined: Apr 10th, 2010
Re: improvement that I think is smart
Reply #5 - Mar 30th, 2019 at 6:12pm
Print Post  
This is a feature of visual studio c++. Therefore your version of vs2015 is not providing this feature.

Did you try 2017 or check for updates for Vs2015. I don't recall when Microsoft released the feature.
  
Back to top
WWW  
IP Logged
 
JakobRasmussen
Newbies
*
Offline


Posts: 2
Joined: Mar 28th, 2019
Re: improvement that I think is smart
Reply #6 - Apr 1st, 2019 at 8:28am
Print Post  
I switched to 2017, so now it works.
Thanks for the help
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint