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 Template ino/pde for new Projects on VisualStudio (Read 3974 times)
OC Tech
Newbies
*
Offline


Posts: 2
Joined: Feb 1st, 2014
Template ino/pde for new Projects on VisualStudio
Feb 1st, 2014 at 6:28pm
Print Post  
Hi All,

I have a template for all my codes that has most of my common functions and definitions.

Is there a way to use that template as the initial pde/ino for a new project in VS? 

So instead of getting the bare bones sketch, I can get this template loaded.

Thanks in advance for any help and support...
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12163
Location: United Kingdom
Joined: Apr 10th, 2010
Re: Template ino/pde for new Projects on VisualStudio
Reply #1 - Feb 2nd, 2014 at 12:34am
Print Post  
Yes you have two options that I can think of:-

1) If you click File>New you will see a standard atmel/visual studio dialog open. You can extend the sections within this window and add your own templates. This article demonstrates how to add a new project with a single empty .ino. You can copy it and add as many .ino files as you need containing Arduino code. 

The example shows how to create a new empty Arduino sketch from a simple template that contains the setup() and loop() methods


and you can group your project templates simply by putting the templates files in a sub folder such as "My Arduino Templates" (maybe a name that not so verbose)



2) Another option is to make use of the VisualAssistX extension that is installed with Atmel Studio. Take a look at the VAssistX menu it contains a menu item called "Insert VA snippet". Also take a look at VAssistX>Tools where you can add your own snippets.

I hope this helps
« Last Edit: Feb 2nd, 2014 at 4:13am by Tim@Visual Micro »  
Back to top
IP Logged
 
OC Tech
Newbies
*
Offline


Posts: 2
Joined: Feb 1st, 2014
Re: Template ino/pde for new Projects on VisualStudio
Reply #2 - Feb 2nd, 2014 at 10:31pm
Print Post  
Thanks...
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint