danielscherzer / GLSL

VSIX Project that provides GLSL language integration.
258 stars 28 forks source link

Feature Request: Auto-Format #105

Open MarkusMiller opened 2 years ago

MarkusMiller commented 2 years ago

In the ticket regarding the issues with Visual Studio 2022 it became apparent, that auto-formatting with CTRL-K, CTRL-F seems not to be working. It is working for the *.glsl extension, though, if NSight is taking over. It would be great, if the auto-formatting functionality was available in the glsl extension, too.

danielscherzer commented 2 years ago

I do not know how to setup/implement auto-formatting for glsl. I did not find any docu on how to enable this for an extension managed file type. If you have any insights. I'm happy to integrate them into the extension. I only found an article showing how to implement it yourself https://docs.microsoft.com/en-us/visualstudio/extensibility/internals/reformatting-code-in-a-legacy-language-service?view=vs-2022 , but not how to use the auto formatter for C/C# already somewhere inside Visual Studio.

MarkusMiller commented 2 years ago

Ad hoc I don't know it either, unfortunately. Never dived into extension development. Might find to dive into it a bit after my PhD. Might take another year, though. Would suggest to leave this ticket open for now.