{"id":15422624,"url":"https://github.com/heaths/vscode-guid","last_synced_at":"2025-04-14T09:42:46.100Z","repository":{"id":47430076,"uuid":"49806763","full_name":"heaths/vscode-guid","owner":"heaths","description":"Insert GUIDs in different formats directly into the editor","archived":false,"fork":false,"pushed_at":"2024-09-05T16:53:59.000Z","size":990,"stargazers_count":26,"open_issues_count":4,"forks_count":8,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-27T23:03:09.515Z","etag":null,"topics":["vscode-extension"],"latest_commit_sha":null,"homepage":"https://marketplace.visualstudio.com/items?itemName=heaths.vscode-guid","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/heaths.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-01-17T06:59:08.000Z","updated_at":"2024-08-30T23:02:10.000Z","dependencies_parsed_at":"2023-12-24T08:20:27.910Z","dependency_job_id":"c42d07f2-370b-40a5-9c9f-41ea63732de4","html_url":"https://github.com/heaths/vscode-guid","commit_stats":{"total_commits":121,"total_committers":7,"mean_commits":"17.285714285714285","dds":"0.31404958677685946","last_synced_commit":"54e649ba3f86de29fd6cbba3f0bd23b57a9496de"},"previous_names":[],"tags_count":34,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fvscode-guid","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fvscode-guid/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fvscode-guid/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/heaths%2Fvscode-guid/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/heaths","download_url":"https://codeload.github.com/heaths/vscode-guid/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248856019,"owners_count":21172680,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["vscode-extension"],"created_at":"2024-10-01T17:39:03.002Z","updated_at":"2025-04-14T09:42:46.073Z","avatar_url":"https://github.com/heaths.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Insert GUID\n\n[![Visual Studio Marketplace version](https://img.shields.io/visual-studio-marketplace/v/heaths.vscode-guid.svg?style=flat-square)](https://marketplace.visualstudio.com/items?itemName=heaths.vscode-guid)\n\nA simple command extension for [Visual Studio Code](https://code.visualstudio.com) to insert globally unique identifiers (GUIDs) into the Code text editor in a variety of formats.\n\n![Insert GUID](https://media.giphy.com/media/3danYPtfh3iQBjd6ef/giphy.gif)\n\nThis provides the same useful formats as _Create GUID_ that ships with Visual Studio, but without specific language syntaxes for some formats and without unwanted line feeds. Currently, formats supported include:\n\n1. Simple string: `11d4dc2e-375a-4b89-9ad4-aa30105385aa`\n2. Registry string: `{11d4dc2e-375a-4b89-9ad4-aa30105385aa}`\n3. C structure: `static const struct GUID __NAME__ = {0x11d4dc2e, 0x375a, 0x4b89, {0x9a, 0xd4, 0xaa, 0x30, 0x10, 0x53, 0x85, 0xaa}};`\n4. C macro: `DEFINE_GUID(__NAME__, {x11d4dc2e, 0x375a, 0x4b89, 0x9a, 0xd4, 0xaa, 0x30, 0x10, 0x53, 0x85, 0xaa);`\n5. Unformatted string: `11d4dc2e375a4b899ad4aa30105385aa`\n6. C structure only: `{0x11d4dc2e, 0x375a, 0x4b89, {0x9a, 0xd4, 0xaa, 0x30, 0x10, 0x53, 0x85, 0xaa}}`\n7. User-specified formats as [described below](#options)\n\nThe token `__NAME__` is easy to replace by double clicking to select every character, unlike `\u003c\u003cname\u003e\u003e` used in the _Create GUID_ tool.\n\n## Installation\n\nYou can easily search for and install extensions directly within Code.\n\n1. Open the command palette: __Ctrl+Shift+P__ (__Cmd+Shift+P__ on Mac)\n2. Type: Install Extension\n3. Type: Insert GUID\n4. Press __Enter__ or click the download button to install\n\nCode also makes it easy to update extensions:\n\n1. Open the command palette: __Ctrl+Shift+P__\n2. Type: Show Outdated Extensions\n3. Press __Enter__ or click the download button to install updates\n\n## Using\n\nWhenever you want to insert a new GUID at the cursor or replace the currently selected text:\n\n1. Open the command palette: __Ctrl+Shift+P__ (__Cmd+Shift+P__ on Mac)\n2. Type: Insert GUID\n3. Press __Enter__ and select the desired format by typing the number or using the arrow keys.\n\nYou can also skip right to step 3 using the default keyboard binding, __Ctrl+Shift+[__. This is more easily remembered as __Ctrl+{__ as with the curly brace used in the registry string format, or as __Cmd+{__ on the Mac.\n\n### Options\n\nYou can set different configuration options to control the format of GUIDs that can be inserted.\n\n* insertGuid.showLowercase: Show lowercase GUIDs (with and without braces) when presenting possible GUID formats to insert. The default is `true`.\n* insertGuid.showUppercase: Show uppercase GUIDs (with and without braces) when presenting possible GUID formats to insert. The default is `false`.\n* insertGuid.showCodeSnippets: Show code snippets for C++ when presenting possible GUID formats to insert. The default is `true`.\n* insertGuid.pasteAutomatically: When not empty, paste the GUID in a specified format without showing selection menu. The default is \"\". The formatting options are:\n  * `{b}|{B}` inserts a braced string in lowercase `{b}` or uppercase `{B}` e.g., `{880c86bc-384c-4cce-9e9a-4f760ca755c4}`\n  * `{d}|{D}` inserts a hyphenated string in lowercase `{d}` or uppercase `{D}` e.g., `880c86bc-384c-4cce-9e9a-4f760ca755c4`\n  * `{n}|{N}` inserts an unformatted string in lowercase `{n}` or uppercase `{N}` e.g., `880c86bc384c4cce9e9a4f760ca755c4`\n  * `{x}|{X}` inserts a struct-formatted string in lowercase `{x}` or uppercase `{X}` e.g., `{0x880c86bc,0x384c,0x4cce,{0x9e,0x9a,0x4f,0x76,0x0c,0xa7,0x55,0xc4}}`\n  * `{x0}|{X0}` inserts the first four bytes as a hexadecimal string in lowercase `{x0}` or uppercase `{X0}` e.g., `880c86bc`\n  * `{x1}|{X1}` and `{x2}|{X2}` insert the second and third two bytes as a hexadecimal string in lowercase `{x1}` and `{x2}`, or uppercase `{X1}` and `{X2}` e.g., `384c` and `4cce`\n  * `{x3}|{X3}` through `{x10}|{X10}` insert the subsequent bytes individually as a hexadecimal string in lowercase `{x3}` or uppercase `{X3}` e.g., `9e` through `c4`.\n  * `{nl}` inserts a new line\n  * All other characters will be interpreted literally e.g., `new GUID(\"{D}\")` inserts `new GUID(\"880C86BC-384C-4CCE-9E9A-4F760CA755C4\")`\n\n  For example, to generate a `GUID` for the [windows](https://crates.io/crates/windows) crate, you could define:\n\n  ```json\n  \"const G: ::windows::core::GUID = ::windows::core::GUID {{nl}    data1: 0x{x0},{nl}    data2: 0x{x1},{nl}    data3: 0x{x2},{nl}    data4: [0x{x3}, 0x{x4}, 0x{x5}, 0x{x6}, 0x{x7}, 0x{x8}, 0x{x9}, 0x{x10}],{nl}};\"\n  ```\n\n  Which would insert a `GUID` like:\n\n  ```rust\n  const G: ::windows::core::GUID = ::windows::core::GUID {\n      data1: 0x9f0a1b2c,\n      data2: 0x4e5f,\n      data3: 0x6a7b,\n      data4: [0x8c, 0x9d, 0x0e, 0x1f, 0x2a, 0x3b, 0x4c, 0x5d],\n  };\n  ```\n\n## License\n\nThe extension and source are licensed under the [MIT license](LICENSE.txt).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fvscode-guid","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheaths%2Fvscode-guid","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheaths%2Fvscode-guid/lists"}