locked
Creating and extension for VSCode to run a key shortcut... (VSCode Question) RRS feed

  • Question

  • 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 ⇧⌥ 

    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

    Tuesday, January 9, 2018 10:31 PM

All replies

  • 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


    MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com

    Wednesday, January 10, 2018 6:29 AM