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 Autocomplete (Read 6794 times)
antrea
Newbies
*
Offline


Posts: 2
Joined: Oct 26th, 2011
Autocomplete
Oct 26th, 2011 at 4:15pm
Print Post  
Can you add this feature in a future release?
See this: http://arduinotovsconverter.codeplex.com/


thanks
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Autocomplete
Reply #1 - Oct 27th, 2011 at 11:36am
Print Post  
that is standard feature of visual studio but you should not need to use that feature for adding #includes. Use Project>Add Arduino Library. It should automatically add the #includes for you. You must click save after adding libraries.

It is better to use the add library option sintead of adding #includes manually. Some libraries have multiple .h files and all MUST be included to remain backwards compatible with the arduino ide.

So if you are new to arduino make sure you use the menus and do not try to add the #includes manually
  
Back to top
WWW  
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Autocomplete
Reply #2 - Oct 27th, 2011 at 12:24pm
Print Post  
Some more info for you...

The picture in your link is invalid. You see a few .h files one of which is <HardwareSerial.h>. This is an arduino core file and is autoamtically included when the core is included. It would be wrong to add it manually. <SoftwareSerial.h> is just one of many arduino libraries. So you must ask where are the rest of them? 

Let's not get confused about why your link shows what it shows. Let us just consider the correct way to work...

With the addin you have simpler and better control. On the "Project" menu you will see "Add Arduino Library"

Add new libraries using a single click



This example has been added to this page. 2nd one down!

http://visualmicro.com/page/Arduino-Visual-Studio-User-Interface-Images.aspx
« Last Edit: Oct 31st, 2011 at 10:26pm by Tim@Visual Micro »  
Back to top
WWW  
IP Logged
 
antrea
Newbies
*
Offline


Posts: 2
Joined: Oct 26th, 2011
Re: Autocomplete
Reply #3 - Oct 31st, 2011 at 9:46am
Print Post  
Uhm.... I did not know this things, I will tray.... thanks! Smiley
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Autocomplete
Reply #4 - Oct 31st, 2011 at 10:34pm
Print Post  
By the way you should be able to see that all of the arduino core is included in intellisense.

Select the Uno board. Then in some code press CTRL+J. In the list that appears you should see "Serial"

Now select a mega board and press CTRL+J in the code. You should see "Serial1" Serial2" "Serial3" etc. 

The Serial information comes from hardwareSerial.h and is automatically included when you switch board.

To see the code that it automatically included you can view the .[ProjectName].vsarduino.h file which is automatically included in all projects.

The .[ProjectName].vsarduino.h file is used only in Visual Studio for intellisense. It is not included in the compile and is not visible to the Arduino IDE.

In the .[ProjectName].vsarduino.h you will see wprogram.h or arduino.h is #included. This is the correct ardunio core header file. It automatically includes hardwareSerial.h.

You can not alter what is in .[ProjectName].vsarduino.h because it is re-created when you make changes to your sketch code or switch board

Good luck Smiley
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint