Visual Studio Ide for Arduino
https://www.visualmicro.com/forums/YaBB.pl
Visual Micro >> Atmel Studio 7.0 >> How to move item templates from Atmel Studio to Visual Studio?
https://www.visualmicro.com/forums/YaBB.pl?num=1565280195

Message started by KulaGGin on Aug 8th, 2019 at 5:03pm

Title: How to move item templates from Atmel Studio to Visual Studio?
Post by KulaGGin on Aug 8th, 2019 at 5:03pm
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?

Title: Re: How to move item templates from Atmel Studio to Visual Studio?
Post by KulaGGin on Aug 8th, 2019 at 5:04pm
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.

Title: Re: How to move item templates from Atmel Studio to Visual Studio?
Post by Visual Micro on Aug 8th, 2019 at 5: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? 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.




Title: Re: How to move item templates from Atmel Studio to Visual Studio?
Post by KulaGGin on Aug 8th, 2019 at 5:21pm

Visual Micro wrote on Aug 8th, 2019 at 5: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


Visual Micro wrote on Aug 8th, 2019 at 5: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.

Title: Re: How to move item templates from Atmel Studio to Visual Studio?
Post by Visual Micro on Aug 8th, 2019 at 5:26pm
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?view=vs-2019

Visual Studio Ide for Arduino » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2019. All Rights Reserved.