Hi All,
I have a question about VSCode, Hope it's okay to post it here, there aren't any VSCode specific forums.
Anyway I'm wondering if there would be an easy way to write an extension for VSCode that would basically just run the Format Document Shortcut whenever I type a character
⇧⌥F
I get that wouldn't be great for large files etc. but for what I'm working with it would just be really handy to have it continuously formating the scripts I'm working on.
Thanks,
Pete
解决方案Hi Pete,
Welcome to the MSDN forum.
Refer to your description, your issue is about the VS Code and our forum is to discuss the VS IDE.
Do you want to create a formatter extension for VS code? Please check this doc:
Creating a Formatter Extension
and the Visual Studio Code extension API has provided support for source code formatters. For a more professional support, you can click the Ask questions or Follow @code at the right side of this page as below, thank you for your understanding.
Best regards,
Sara