Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>winregistryNew to Visual Studio Code? Get it now.
winregistry

winregistry

Marcello Urbani

|
32,686 installs
| (0) | Free
Exposes API to read he windows registry to other vscode extensions
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

winregistry README

Allows other extensions to read the windows registry without using native modules

Usage

import { extensions } from "vscode"
import { GetStringRegKey } from "vscode-windows-registry"
const winregistryExtensionId = "murbani.winregistry"

export function getWinRegistryReader() {
  const ext =
    extensions.getExtension <
    { GetStringRegKey: typeof GetStringRegKey } >
    winregistryExtensionId
  if (!ext?.isActive) throw new Error("Failed to access registry extension")
  return ext.exports.GetStringRegKey
}

console.log(getWinRegistryReader()("HKEY_CURRENT_USER", "path", "key"))
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft