Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Code BinNew to Visual Studio Code? Get it now.
Code Bin

Code Bin

T-myk

|
41 installs
| (1) | Free
Save deleted code to sidebar for later viewing and restoration / 削除したコードをサイドバーに保存し、後で確認・復元
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Code Bin

Save deleted code to sidebar for later viewing and restoration!
削除したコードをサイドバーに保存し、後で確認・復元できるVSCode拡張機能です!

Features / 機能

This extension monitors code deletion operations and saves deleted code as history:
この拡張機能は、コードの削除操作を監視し、削除されたコードを履歴として保存します:

🗂️ Code Bin History / Code Bin履歴

  • Automatically saves deleted code to the "Code Bin" section in Explorer
    コードを削除すると、自動的にエクスプローラーの「Code Bin」セクションに保存されます
  • Records content, file name, line number, and deletion time
    削除されたコードの内容、ファイル名、行番号、削除時刻を記録
  • Saves up to 100 items by default (configurable)
    最大100件まで履歴を保存(設定で変更可能)

📋 Sidebar Display / サイドバー表示

  • Adds "Code Bin" section to the left Explorer panel
    左側のエクスプローラーに「Code Bin」セクションが追加されます
  • Shows deleted code list in chronological order (newest first)
    削除されたコードの一覧を時系列で表示(新しい順)
  • Each item shows preview text and file information
    各アイテムにはプレビューテキストとファイル情報を表示

🔄 Code Restoration / コード復元機能

  • Select code from history to restore to current editor
    履歴からコードを選択して現在のエディタに復元
  • View deleted code in a separate editor for confirmation
    削除したコードを別のエディタで表示して確認

🌐 Multi-language Support / 多言語対応

  • Supports English and Japanese
    英語と日本語に対応
  • Auto-detects VS Code language or manual selection
    VS Codeの言語を自動検出、または手動選択

Installation / インストール方法

  1. Search for "Code Bin" in VS Code Extensions Marketplace
    VSCodeの拡張機能マーケットプレイスで「Code Bin」を検索
  2. Click "Install" button
    「インストール」ボタンをクリック

Usage / 使い方

Basic Usage / 基本的な使用方法

  1. Install the extension and the "Code Bin" section will appear in the left Explorer
    拡張機能をインストールすると、左側のエクスプローラーに「Code Bin」セクションが表示されます
  2. Delete code and it will be automatically added to history
    コードを削除すると、自動的に履歴に追加されます
  3. Check deleted code from the sidebar history
    サイドバーの履歴から削除されたコードを確認できます

History Operations / 履歴の操作

  • Show Code: Hover over history item and select "Show Code"
    コードを表示: 履歴アイテムをホバーして「コードを表示」を選択
  • Restore Code: Hover over history item and select "Restore Code"
    コードを復元: 履歴アイテムをホバーして「コードを復元」を選択
  • Clear History: Click clear button at the top of the section
    履歴をクリア: セクション上部のクリアボタンで全履歴を削除

Settings / 設定

This extension provides the following settings:
この拡張機能では以下の設定が可能です:

codeBin.enabled

  • Type / 型: boolean
  • Default / デフォルト: true
  • Description / 説明: Enable/disable code bin tracking / Code Binの追跡を有効/無効にします

codeBin.maxHistoryItems

  • Type / 型: number
  • Default / デフォルト: 100
  • Description / 説明: Maximum number of history items to save / 保存する削除履歴の最大数を設定します

codeBin.language

  • Type / 型: string
  • Options / オプション: "auto", "en", "ja"
  • Default / デフォルト: "auto"
  • Description / 説明: UI language (auto: follow VS Code, en: English, ja: Japanese) / UIの言語 (auto: VS Codeに従う, en: 英語, ja: 日本語)

Feature Details / 機能詳細

🎯 Auto Detection / 自動検出

  • Automatically detects text deletion operations
    テキストの削除操作を自動的に検出
  • Accurately records actual deleted text content
    実際に削除されたテキスト内容を正確に記録
  • Excludes whitespace-only deletions
    空白のみの削除は除外
  • Records file type (language) information
    ファイルの種類(言語)も記録

💾 Persistence / 永続化

  • History is saved in VS Code settings and persists after restart
    履歴はVSCodeの設定に保存され、再起動後も保持
  • History is maintained even when changing workspaces
    ワークスペースを変更しても履歴は維持

🔍 Detailed Information / 詳細情報

Each history item shows the following information on hover:
履歴アイテムをホバーすると以下の情報を確認できます:

  • Actual content of deleted code
    削除されたコードの実際の内容
  • Source file name and line number
    削除元のファイル名と行番号
  • Deletion timestamp (hour:minute:second)
    削除された日時(時:分:秒)
  • File language type
    ファイルの言語タイプ

Changelog / 更新履歴

v0.0.1

  • Initial release / 初回リリース

v0.0.2

  • Fixed issue where code could not be deleted consecutively / 連続した削除操作ができない問題を修正
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft