Tsuchinoko

Tsuchinoko VS Code 拡張 導入マニュアル

🇯🇵 日本語版

Prerequisites

Installation

Option 1: Install from .vsix file

code --install-extension tsuchinoko-0.1.0.vsix

Option 2: Build from Source

cd vscode-extension
npm install
npm run compile
npx vsce package
code --install-extension tsuchinoko-0.1.0.vsix

Usage

Show Rust Preview

  1. Open a Python file (.py)
  2. Press Ctrl+Alt+P (or Cmd+Alt+P on Mac)
  3. A side panel will show the transpiled Rust code

Real-time Diagnostics

Commands

Command Keybinding Description
Tsuchinoko: Show Rust Preview Ctrl+Alt+P Open Rust preview panel
Tsuchinoko: Transpile to Rust - Transpile current file

Configuration

Open VS Code Settings (Cmd+,) and search for “Tsuchinoko”:

Setting Default Description
tsuchinoko.tnkPath tnk Path to the tnk command
tsuchinoko.autoCheck true Automatically check on save
tsuchinoko.checkDelay 500 Delay before checking (ms)

Troubleshooting

“tnk command not found”

  1. Ensure tnk is installed: tnk --version
  2. If installed but not in PATH, set the full path in settings:
    "tsuchinoko.tnkPath": "/path/to/tnk"
    

Preview not updating

Diagnostics not showing

Uninstall

code --uninstall-extension tsuchinoko