Skip to content

New snippet variable: UUID_V4 (generate a random UUID) #109438

Closed

Description

@hi2u

Vscode snippets support a bunch of auto-generated variables - e.g. variables related to filepaths, timestamps etc.

Could you please add a new variable called something like UUID_V4 that will auto-generate a version 4 UUID? (random)

e.g. When executing the snippet, the ${UUID_V4} placeholder would be replaced with a value like: e83961ec-f06d-4539-b7ba-a08175ceac3c

Activity

  1. added
    feature-request
    on Oct 27, 2020
  2. vscode-triage-bot commented on Oct 28, 2020

    @vscode-triage-bot

    This feature request is now a candidate for our backlog. The community has 60 days to upvote the issue. If it receives 20 upvotes we will move it to our backlog. If not, we will close it. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  3. waldo1001 commented on Nov 16, 2020

    @waldo1001

    VS Code Issue Triage Bot (@vscode-triage-bot) , that's a wrap! Now put it on the backlog, and in the software :D

  4. vscode-triage-bot commented on Nov 17, 2020

    @vscode-triage-bot

    🙂 This feature request received a sufficient number of community upvotes and we moved it to our backlog. To learn more about how we handle feature requests, please see our documentation.

    Happy Coding!

  5. nrayburn-tech commented on Dec 29, 2020

    @nrayburn-tech
    Contributor

    Johannes Rieken (@jrieken) could the generateUuid function be used with a RANDOM_UUID snippet variable?

    export function generateUuid(): string {

    I don't know how different the uuid and uuid_v4 are, or if that matters here.

    I can submit a PR if that function works, or if you have any input on how to go about this.

  6. jrieken commented on Jan 4, 2021

    @jrieken
    Contributor

    Nicholas Rayburn (@nrayburn-tech) Yeah, that function should be OK to be used

  7. added
    verification-needed
    on Jan 7, 2021
  8. added
    unreleased
    on Jan 7, 2021
  9. jrieken commented on Jan 7, 2021

    @jrieken
    Contributor

    To verify make sure that you can have a snippet like this: Hello $UUID

  10. added
    insiders-released
    and removed
    unreleased
    on Jan 8, 2021
  11. added
    verified
    and removed
    verification-needed
    on Jan 26, 2021
  12. locked and limited conversation to collaborators on Feb 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

feature-requestinsiders-releasedon-testplansnippetsverified

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions