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

Feature Request: Live preview Visual Studio Code extension #217

Open
raxuser100 opened this issue Jan 20, 2020 · 2 comments
Open

Feature Request: Live preview Visual Studio Code extension #217

raxuser100 opened this issue Jan 20, 2020 · 2 comments

Comments

@raxuser100
Copy link

raxuser100 commented Jan 20, 2020

Would it be possible to create an extension for Visual Studio Code whereby a template and data (possibly in json) can be edited and a live output preview generated? Editing the template and data will update the output preview in real-time.
Naturally, for the most part, this will be for simple data models that are essentially Dtos based on a json file. More intensive models could also be supported somehow.

Not sure if someone has already built this?
How difficult would this be?

I can build this if someone can give me some technical architectural guidance.

The Liquid preview extension is pretty cool and we could use a similar operation.

@xoofx
Copy link
Member

xoofx commented Jan 26, 2020

Not sure if someone has already built this?
How difficult would this be?

I don't know. Live preview would require to call Scriban from VSCode, so that means using a .NET exe. It is doable, but it certainly a bit of work to setup this, package it...etc.

@NeilMacMullen
Copy link
Contributor

@raxuser100 this is something I considered for my project https://github.com/NeilMacMullen/Textrude and would still be keen on. I didn't progress it because I couldn't see how to bring together all the UI elements in VS Code. However, the Textrude "engine" is deliberately written to support this kind of scenario. I appreciate it's a year since you posted this but if you are still interested in collaborating on this please drop me a line over on that project.

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

3 participants