gencay / vscode-chatgpt

An unofficial Visual Studio Code - OpenAI ChatGPT integration
ISC License
3.5k stars 755 forks source link

Feature Request: LaTeX rendering support #193

Closed ZhengQinLai closed 1 year ago

ZhengQinLai commented 1 year ago

Firstly, I want to express my gratitude for creating such a useful tool. Your work has made my coding experience in VSCode much more efficient and enjoyable.

I am writing to request a new feature for your plugin. It would be helpful if the plugin could parse and render LaTeX formulas within the code editor. As someone who uses LaTeX frequently in my work, being able to preview formulas within VSCode would save me a lot of time and hassle.

I understand that adding this functionality may require a significant amount of effort, but I think it would be a valuable addition to an already excellent plugin. If you could consider implementing this feature in a future release, I would greatly appreciate it.

Thank you for your time and consideration.

gencay commented 1 year ago

@ZhengQinLai thank you 🙏 I'm glad you are enjoying it! Could you elaborate a little bit more and give some examples of 'parse and render LaTeX formulas'? If you have Latex in a code editor, you can use another extension to preeview it, like this.

ZhengQinLai commented 1 year ago

@gencay I'm sorry for not providing a detailed description. For example, when chatgpt mentions a Latex formula, it will be displayed in the conversation box like: image If it were possible to render formulas like in some common editors such as Typora, that would be great. image By the way, I remember that the web version of ChatGPT used to have real-time rendering capabilities, but it didn't work when I tried just now. Maybe I remembered wrongly. Hopefully I stated that clearly, thank you for your consideration. :)

gencay commented 1 year ago

My suggestion is to export your conversations to a markdown file and then use a Latex viewer extension to view your formulas in another tab. This would be out of scope for this project.