Welcome, Guest. Please Login or Register
Arduino IDE for Visual Studio
 
 
When Logging a Support Issue in the Forum, please ensure you have also:-
  • Enabled vMicro > Compiler > Show Build Properties and Verbose
  • Re-Compile your program with these settings enabled
 
Save the new Output to a Text File and....
Support requests without the output above may be impossible to answer, so please help us to help you
 
  HomeSearch Tutorials & Wiki visualmicro.com LoginHelpRegister  
 
Page Index Toggle Pages: 1
Send Topic Print
improvement that I think is smart (Read 254 times)
JakobRasmussen
Newbies
*
Offline



Posts: 2
improvement that I think is smart
Mar 28th, 2019 at 5:40pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 9745
United Kingdom
Re: improvement that I think is smart
Reply #1 - Mar 28th, 2019 at 5:46pm
 
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:
//i is the count for x
int i = 0;
 




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

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

}
 


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



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

Code (C++):
#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 / * * /.
Back to top
« Last Edit: Mar 28th, 2019 at 10:40pm by Visual Micro »  
 
IP Logged
 
Visual Micro
Administrator
*****
Offline



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

Which IDE and version are you using?
Back to top
« Last Edit: Mar 28th, 2019 at 10:47pm by Visual Micro »  
WWW  
IP Logged
 
JakobRasmussen
Newbies
*
Offline



Posts: 2
Re: improvement that I think is smart
Reply #4 - Mar 30th, 2019 at 5:33pm
 
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
 
Visual Micro
Administrator
*****
Offline



Posts: 9745
United Kingdom
Re: improvement that I think is smart
Reply #5 - Mar 30th, 2019 at 6:12pm
 
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
Re: improvement that I think is smart
Reply #6 - Apr 1st, 2019 at 9:28am
 
I switched to 2017, so now it works.
Thanks for the help
Back to top
 
 
IP Logged
 
Page Index Toggle Pages: 1
Send Topic Print