Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Should it register the 'New YAML file' template? #14

Open
dsaf opened this issue May 16, 2015 · 9 comments
Open

Should it register the 'New YAML file' template? #14

dsaf opened this issue May 16, 2015 · 9 comments

Comments

@dsaf
Copy link

dsaf commented May 16, 2015

At the moment I can create e.g. a new XML File via the Visual Studio 2012 menu, but YAML doesn't seem to be available. Not sure if it's not implemented or not working.

FILE -> New File -> YAML File

I guess it's not the biggest deal, but just wanted to make you aware.

PS: thanks for supporting every modern version of Visual Studio.

@aaubry
Copy link
Owner

aaubry commented May 17, 2015

I think that it would make sense to offer this feature. I don't know how to implement that, though.

@TheBeardedLlama
Copy link

This is an old one, so not sure if you'd still like to do it.

I could have a look at it if you like.

(Not familiar with that sort of thing, but happy to take on the challenge ;))

@aaubry
Copy link
Owner

aaubry commented May 10, 2016

I think that this would be a useful feature. You are welcome to look into this. The documentation of the Visual Studio extensibility is really poor. What helps is to find another open source project that does what you want and look how they do it :)

@TheBeardedLlama
Copy link

no worries, I am aware of the documentation issues ;)

I'll have a go and keep you up to date

@TheBeardedLlama
Copy link

I'm assuming the workflow is the standard fork and PR?

@TheBeardedLlama
Copy link

also, what would you like the template to be?

or should I come up with some basic 1,2,3,4,5 type thing?

alternatively or in addition we could add this to side waffle (would that be ok @madskristensen?)

@madskristensen
Copy link
Contributor

Item templates are super easy with the TemplateBuilder nuget package. I'm using it in multiple extensions including the Webpack Task Runner

@aaubry
Copy link
Owner

aaubry commented May 10, 2016

The workflow is the standard one, with pull requests. I think that it would be useful to add the template to this extension. As a user I would expect the template to be part of the extension. Regarding the initial content of the file, I don't know what is best. If the user does not know YAML very well, it is nice to have an example document, such as https://en.wikipedia.org/wiki/YAML#Sample_document. When the user knows the syntax well, the sample is slightly annoying because one has to delete it manually, though.

@TheBeardedLlama
Copy link

thank you for the suggestion @madskristensen, much appreciated!

@aaubry kk, in which case we could have two item templates, one with sample data and one empty?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants