CSV Advanced Editor
English | 日本語
English
A grid-based CSV editor for VS Code, built to hold up under large datasets and multi-line cells, with an Excel-like editing experience.
Features
- Display: virtual scrolling for fast rendering of large datasets, multi-line display for cells containing line breaks, resizable columns
- Editing: drag-to-select ranges, copy/paste with Excel, fill-handle-style bulk edits across multiple cells, insert/delete/reorder rows and columns, rename column headers
- Find & replace: regex support, target a specific column, step through matches one at a time
- Sort & filter: click a column header to sort, filter by text per column
- Column pinning: pin any column to the left edge
- Header-row detection: guesses whether row 1 is a header and asks if it doesn't look like one; can also be toggled manually from the toolbar
- Safety: warns about CSV injection risk (cells starting with
=, +, -, @), detects mixed line endings, detects external changes before overwriting on save
- Localization: the UI follows VS Code's display language (English/Japanese)
Usage
- Open a
.csv file (it opens as a normal text editor, as usual).
- Click the table icon in the editor title bar, or run the "Open in CSV Edit Mode" command, to open the grid editor in a separate tab.
- Edit cells, select ranges, copy/paste, and so on in the grid.
- Two buttons write your changes back:
- Apply: writes the changes back to the underlying text document (does not save the file).
- Apply & Save: writes the changes back and saves the file.
While the edit-mode tab is open, the original text tab becomes read-only, preventing conflicting edits from both tabs at once.
Settings
| Setting |
Description |
Default |
csvEditor.defaultDelimiter |
Fallback delimiter used when auto-detection can't find a candidate in row 1 |
, |
csvEditor.defaultWrapText |
Start edit mode with "Wrap text" turned on |
false |
License
MIT License
日本語
大量データや改行を含むセルにも強い、Excel感覚で使えるCSV編集用のVS Code拡張機能です。
主な機能
- 表示: 仮想スクロールによる大量データの高速表示、改行を含むセルの複数行表示、列幅調整
- 編集: ドラッグでの範囲選択、Excelとの相互コピペ、複数セル一括編集(フィルハンドル)、行・列の挿入/削除/並べ替え、列名リネーム
- 検索・置換: 正規表現対応、列指定、1件ずつ確認しながらの置換
- ソート・フィルタ: 列ヘッダークリックでソート、列ごとのテキスト絞り込み
- 列の固定: 任意の列を左端に固定表示
- ヘッダー行の自動判定: 先頭行がヘッダーかどうかをヒューリスティックで推定し、無ければ確認。ツールバーから手動切り替えも可能
- 安全性への配慮: CSVインジェクション(
=, +, -, @で始まるセル)への警告、改行コード混在の検知、外部エディタでの変更検知
- 多言語対応: VS Codeの表示言語設定に応じて日本語/英語のUIを自動切り替え
使い方
.csvファイルを開く(通常のテキストエディタとして開きます)
- エディタタイトルバーのテーブルアイコン、または「CSV編集モードで開く」コマンドを実行すると、グリッド編集用のパネルが別タブで開きます
- グリッド上でセル編集・範囲選択・コピペなどを行います
- 編集内容を反映するには2つのボタンがあります
- 反映: 編集内容を元のテキストドキュメントに書き戻します(保存はしません)
- 反映して保存: 反映と同時にファイルへ保存します
編集モードを開いている間、元のテキストタブは読み取り専用になり、両タブでの同時編集による競合を防ぎます。
設定
settings.jsonで以下をカスタマイズできます。
| 設定キー |
説明 |
デフォルト |
csvEditor.defaultDelimiter |
区切り文字の自動判定に失敗した場合のフォールバック値 |
, |
csvEditor.defaultWrapText |
編集モードを開いた時点の折り返し表示の初期状態 |
false |
ライセンス
MIT License
| |