Skip to content

Please add snippet editing to this extention #3556

Open

Description

@Managor

Type: LanguageService

It would be really useful to be able to tweak the snippets to my liking in a text file. I personally have minor formatting tweaks that I'd like to do like adjusting the position of the first curly bracket after for and having **env in the main function. I'd prefer not to have duplicates in the context menu either.

Activity

  1. sean-mcmanus commented on Apr 29, 2019

    @sean-mcmanus
    Contributor

    Another user requested this at #3354 too.

    Yeah, this is relatively straight-forward to implement, we just need to add a setting for a snippets json file with the snippet data, and then send the file path to our language server process, similar to how we handle the compileCommands json setting.

  2. chongchai commented on Jun 3, 2019

    @chongchai

    Sean McManus (@sean-mcmanus) any plan to implement this feature?I alse want to modify the extension's snippet for some different code style.

  3. sean-mcmanus commented on Jun 3, 2019

    @sean-mcmanus
    Contributor

    chongchai We'd like too eventually, but we're all busy working on other higher priority stuff currently. If someone could help out with a pull request with the TypeScript changes that would help (we'd still have to add some language server side changes to handle the new snippets).

  4. added this to the Backlog milestone on Apr 2, 2020
  5. elijahfhopp commented on May 20, 2020

    @elijahfhopp

    It would be great if it just used the clang-format that was already set. Then you wouldn't even have to edit the snippets, but they would just conform to the existing code style you have chosen.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions