Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VSCode Inline EncryptNew to Visual Studio Code? Get it now.
VSCode Inline Encrypt

VSCode Inline Encrypt

ON7AUR

| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-inline-encrypt

Table of Contents

  • Introduction
  • Sponsors
  • Documentation
    • Installation
      • GPG Note
    • Usage
      • Settings
  • Versions
  • License

demo

 

Français, English, Español, German, Dutch, 简体中文, 繁體中文, 日本語

Introduction

vscode-inline-encrypt is a lightweight VSCode extension that lets you encrypt and decrypt text snippets without leaving your editor.
It integrates with GnuPG (gpg) so you can reuse your existing key pairs and workflows.

Typical use cases:

  • Hide API keys or sensitive passwords in a Markdown note.
  • Share encrypted snippets in Git repositories without exposing secrets.
  • Work on multiple machines while using the same GPG identity.

Sponsors

This is a community-driven project.
If you find it useful and want to support its development, consider:

  • :beers: Support via PayPal
  • Submitting feedback and bug reports
  • Sharing it


Documentation

Installation

  1. Download the .vsix package or install it directly from the marketplace.
  2. Make sure gpg is installed on your system (gpg --version). Set the path in the extension settings.
  3. Import or create a key pair before using the extension.
  4. Configure the key in the extension settings.

GPG Note

If you are completely new to gpg:

# Generate a key pair
gpg --gen-key  
# List public keys
gpg --list-keys  
# List private keys
gpg --list-secret-keys 
# Export private key ⚠
gpg --export-secret-keys YOUR_ID > mykey.prk
# Export public key
gpg -a --export [id/name] > outputfile
# Import private key
gpg -a --import key.prk
gpg --edit-key youremail@example.com
>trust, 5, quit
# Import public key
gpg -a --import key.puk

PS: Some graphical tools allow you to perform these operations — feel free to use whichever works best for you.

Usage

  • Select some text, then run one of the following commands:

    • Encrypt selection (inlineEncrypt.encrypt)
    • Decrypt selection (inlineEncrypt.decrypt)
  • (Optional) Create keyboard shortcuts for these commands.

Settings

You need to configure:

  • inlineEncrypt.gpgPath: Path to your gpg.
  • inlineEncrypt.keyId: Default key ID to use for encryption.

Example settings.json:

{
  "inlineEncrypt.gpgPath": "/usr/bin/gpg",
  "inlineEncrypt.keyId": "0x158B2252"
}

Versions

See CHANGELOG.md for version history.

License

CC-BY-NC-SA -> https://creativecommons.org/licenses/by-nc-sa/4.0/

Creative Commons License




ON7AUR - CC-BY-NC-SA ®

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft