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 How to move item templates from Atmel Studio to Visual Studio? (Read 2285 times)
KulaGGin
Newbies
*
Offline


Posts: 7
Joined: Aug 8th, 2019
How to move item templates from Atmel Studio to Visual Studio?
Aug 8th, 2019 at 4:03pm
Print Post  
When I create new Class in Atmel Studio, it creates a file with this template:


I'd like to move this template to Visual Studio, so when I create new class in Visual Studio, it creates files like this one: time, author, comments, class structure. I can't find a way to do this. I understand I can create new item template in Visual Studio and mimic what Atmel Studio does but is there a way to copy the template itself?

Other question I have is how I customize item templates in Atmel Studio. For example, I want to customize class template in Atmel Studio itself, so there's something else in the file besides what already is there. How do I do this?
  
Back to top
 
IP Logged
 
KulaGGin
Newbies
*
Offline


Posts: 7
Joined: Aug 8th, 2019
Re: How to move item templates from Atmel Studio to Visual Studio?
Reply #1 - Aug 8th, 2019 at 4:04pm
Print Post  
First time it threw error something like "...Connection couldn't be established", so I pressed back button and tried to create thread again. Apparently, it created threads both time, so you can delete this one I guess.
  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to move item templates from Atmel Studio to Visual Studio?
Reply #2 - Aug 8th, 2019 at 4:13pm
Print Post  
I think this is a question for atmel or microsoft but some info that might help but it is important to say what you are clicking to create your code? There are various ways to create a class.

Atmel studio is visual studio 2015. If you read about templates for visual studio you will find that they are just zip files that you can copy of edit. In the zip you have code files, optionally a project file and a template file. All are text files you can edit.

The atmel studio project file is dfferent from visual studio. However you are talking about item templates and not project templates so maybe there isn't much difference.

You might be able to use tools>options to find the location of where each ide stores templates. There are user templates, extension templates and ide templates locations.



  
Back to top
WWW  
IP Logged
 
KulaGGin
Newbies
*
Offline


Posts: 7
Joined: Aug 8th, 2019
Re: How to move item templates from Atmel Studio to Visual Studio?
Reply #3 - Aug 8th, 2019 at 4:21pm
Print Post  
Tim@Visual Micro wrote on Aug 8th, 2019 at 4:13pm:
I think this is a question for atmel or microsoft but some info that might help but it is important to say what you are clicking to create your code?

I press RMB on a project and then Add > Add New Class:
https://i.imgur.com/jTnxc1C.png

Tim@Visual Micro wrote on Aug 8th, 2019 at 4:13pm:

The atmel studio project file is dfferent from visual studio. However you are talking about item templates and not project templates so maybe there isn't much difference.

You might be able to use tools>options to find the location of where each ide stores templates. There are user templates, extension templates and ide templates locations.

Ok, I'll look into these.
« Last Edit: Aug 8th, 2019 at 4:29pm by KulaGGin »  
Back to top
 
IP Logged
 
Tim@Visual Micro
Administrator
*****
Offline


Posts: 12071
Location: United Kingdom
Joined: Apr 10th, 2010
Re: How to move item templates from Atmel Studio to Visual Studio?
Reply #4 - Aug 8th, 2019 at 4:26pm
Print Post  
Okay that is the standard visual studio new class template. I am not sure where that is but maybe this will help

https://docs.microsoft.com/en-us/visualstudio/ide/how-to-create-item-templates?v...
  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint