GLSL icon indicating copy to clipboard operation
GLSL copied to clipboard

Feature Request: Auto-Format

Open MarkusMiller opened this issue 2 years ago • 2 comments

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.

MarkusMiller avatar Aug 16 '22 15:08 MarkusMiller

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.

danielscherzer avatar Aug 17 '22 06:08 danielscherzer

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.

MarkusMiller avatar Aug 17 '22 08:08 MarkusMiller