Fixes VS Code's workspace search encoding limitation. Automatically searches EUC-JP, Shift_JIS, and UTF-8 files simultaneously without changing your settings.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
A VS Code extension that enables simultaneous workspace search across EUC-JP, Shift_JIS, and UTF-8 files, and opens matched files in their detected encoding.
Why this extension?
In VS Code, workspace search uses a single global encoding (files.encoding, default UTF-8). When working with mixed-encoding legacy codebases (such as PHP/Perl projects containing EUC-JP or Shift_JIS files), non-UTF-8 files cannot be searched with Japanese queries, and clicking a result often results in garbled text (mojibake).
This extension addresses the long-standing workspace search limitations discussed in the official VS Code repository:
Parallel Multi-Encoding Search: Runs ripgrep across EUC-JP, Shift_JIS, and UTF-8 in parallel and deduplicates overlapping matches.
Auto-Reopen in Detected Encoding: Clicking a search result reopens the editor with the matched encoding (eucjp / shiftjis / utf8) and jumps to the exact line/column without modifying files.encoding.
Zero Configuration: Bundles @vscode/ripgrep and automatically resolves the ripgrep binary across Windows, WSL, macOS, and Linux.
Native Search Options: Supports Case Sensitivity (Aa), Whole Word (\b), Regular Expressions (.*), and glob filters (files to include / files to exclude).
開発の背景と特徴 (日本語)
VS Code の標準検索は files.encoding(通常 UTF-8)に依存しているため、EUC-JP や Shift_JIS の既存ファイルが混在するプロジェクトでは日本語検索がヒットせず、開いた際に文字化けが発生します。
本拡張機能は、上記 VS Code 公式 Issue で議論されてきた課題を解決するために作成されました。