Twin Pane Commander
Two-panel file manager inside Visual Studio Code.
Features:
- Files and folders:
- Normal operations: create, copy, delete, move, rename
- View and change file attributes
- Find by name / content
- Create symlinks and directory junctions
- Archives:
- ZIP and TAR supported natively
- 7-zip and RAR supported if you have them installed
- Password-protected archives
- Multi-volume archives
- Remote servers:
- SSH (SFTP) connections with password or private key
- FTP and FTPS (explicit or implicit TLS) connections
- Browse, copy, move, rename, delete and edit files on the server
Planned in upcoming releases:
Keys
| Key |
Action |
| Tab |
Switch pane |
| Arrows, PgUp/PgDn, Home/End |
Move cursor (selection is kept) |
| Left / Right |
Previous / next column (brief view), page up / down (detailed view) |
| Shift+movement |
Select / deselect the items passed over |
| Ctrl+click, Shift+click |
Toggle item / range |
| Insert, Space |
Toggle item (Insert also moves down) |
| Numpad + / - / * |
Select by mask / deselect by mask / invert selection |
| Esc |
Clear selection (select all: Numpad + with *) |
| Ctrl+A |
Attributes and times of the selected items (local files only) |
| Enter, double-click |
Enter folder / open file with system default app |
| Shift+Enter |
Open folder in the system's file manager (File Explorer); on .. the current folder |
| Backspace |
Go up |
| Ctrl+Up, Ctrl+PageUp |
Go up (out of an archive at its root); at the root of a drive, choose a source |
| Ctrl+PageDown |
Enter folder or archive |
| Shift+F1 |
Create an archive from the selected items |
| Left Ctrl+1 / Left Ctrl+2 |
Brief / detailed view |
| Right Ctrl+1...9, 0 |
Open a folder shortcut (a menu if it has several folders) |
| Left Ctrl+Shift+1...9, 0 |
Add the current folder to a folder shortcut |
| Click on a column header |
Sort by it, click again to reverse |
| F4 |
Open file in an editor tab |
| Shift+F4 |
Create a file and open it in an editor tab |
| F5 / F6 |
Copy / move to the other pane (target and conflict handling in the dialog) |
| Shift+F6 |
Rename |
| Alt+F6 |
Create hard links, directory junctions or symbolic links |
| F7 |
Create folder (nested with /) |
| F8, Del |
Delete to Recycle Bin |
| Shift+F8, Shift+Del |
Delete permanently |
| Alt+F1, click on path |
Choose source (drives, home, workspace folders) |
| Alt+F7 |
Find files (mask, text, case, location) |
| Ctrl+R |
Refresh |
| F9 |
Settings (view options, folder shortcuts, status of the 7z and rar executables, server connections) |
| F10 |
Running operations: progress, speed; Delete or X cancels one (after a confirmation), Esc closes |
Moving to another folder clears the selection.
Running operations
Copy, move, rename, delete, creating archives and extracting / downloading a file to open it
run in the background; the panes stay usable meanwhile. F10 lists them with a progress bar
(percentage when the amount is known, otherwise an indeterminate bar) and the speed of data
transfers, updated twice a second; the F10 button shows how many are running. An operation
can only be cancelled there.
Items an operation works on are blocked until it ends: greyed out with a spinning icon and its
progress in the Size column; they cannot be selected, opened or changed. Items being created
(the targets of a copy or move) appear in their folder as blocked placeholders right away, also
when you come back to that folder later. Operations on archives run one after another.
Large local files (4 MB and more) are copied as a stream, so progress and cancellation work in
the middle of a file (the partial copy is removed); on Windows such files keep their read-only
attribute, but not hidden / system.
Folder shortcuts
There are ten folder shortcuts, on the keys 1...9 and 0. Each one holds any number of folders,
optionally with a name. Left Ctrl+Shift+N adds the current folder to shortcut N. Right Ctrl+N
opens its folder in the active pane; if it has several, a menu in the middle of the window lists
them (by name, or by path if they have none), with "Edit list..." at the end. The list of each
shortcut is edited in the settings (F9, tab "Folder Shortcuts"): add, remove, change, reorder.
Left and right Ctrl are told apart by the file manager itself, so the view keys (Ctrl+1 / Ctrl+2)
only work with the left Ctrl key.
Development
npm install
Open this folder in VS Code, press F5 ("Run Extension"), then in the new window run
Twin Pane: Open File Manager from the Command Palette.
Archives
Ctrl+PageDown on an archive shows its contents like a folder. Copy, move, delete, rename,
F4 (edit and save back) and F7 work inside archives, between an archive and a folder, and
between two archives. Copying into an archive opens "Add files to archive" with compression
and encryption options. Passwords are asked for when an encrypted file is read or the archive
is changed (or right away if the file list itself is encrypted) and kept for the session.
ZIP support is built in (no dependencies): stored / Deflate, Zip64, split volumes
(name.z01, ..., name.zip), reading of ZipCrypto and WinZip AES, writing of AES-256.
Unchanged entries are copied raw when an archive is rewritten, so they are not recompressed.
ZIP cannot encrypt the file list, so "Files and header" is disabled for it.
TAR is built in as well: .tar, .tar.gz / .tgz and .tar.zst / .tzst (when the Node
version of VS Code has Zstandard). ustar, PAX and GNU long names are read; long and non-ASCII
names are written as PAX. TAR has no encryption or volumes. A compressed TAR is unpacked to a
temporary file on the first read and recompressed as a whole when it changes. Hard links are
stored as copies when an archive is rewritten; devices and FIFOs are not listed and are dropped.
Other formats use external programs, run in the background without a console window. They are
taken from the settings below, or searched in PATH; F9 shows whether they were found:
- 7-Zip (
7z, 7zz or 7za): 7Z archives (read and write, AES-256, encrypted file list),
RAR (read-only, if the rar executable is missing), .tar.bz2 / .tar.xz / .tar.lzma / .tar.Z, and
read-only ISO, CAB, WIM, ARJ, LZH, CPIO, RPM, DEB, DMG, VHD(X), MSI, CHM, XAR, SquashFS and
single .gz / .bz2 / .xz / .lzma / .Z files.
- RAR (the
rar executable): RAR archives, read and write.
Without the program, opening such an archive shows what to install, and its format is
greyed out in "Create archive" (the (i) next to the format list says why). Changes are applied
with the program's delete / rename / add commands on a temporary copy, which is checked and
then replaces the archive, so a failed operation leaves the archive unchanged.
Remote servers
Connections are created in the settings (F9, "Servers", "Add"): SSH (SFTP) or FTP / FTPS.
SSH connections have a name, the host and port, the user name, and either a password or a
private key file (OpenSSH, PEM or PuTTY format) with its passphrase. They appear in the "Servers" group of Alt+F1; picking one opens the home folder
on the server. Paths on a server are shown and typed as name:/path (in the copy dialog, for
example); in a pane on a server, /path is absolute on that server.
- Passwords and passphrases are only saved if chosen, in VS Code's secret storage, which uses
the keychain of the operating system (Windows Credential Manager, macOS Keychain, libsecret).
Otherwise they are asked for once per session.
- The host key is checked like OpenSSH does: the first connection shows its fingerprint and
asks whether to trust it; a changed key is reported and refused unless confirmed.
- Connections are stored on this computer only (not synchronized).
- Copying and moving work between the server and local folders, archives and other servers,
and keep modification times, without asking about large files. Files that would be
downloaded implicitly - opened with Enter or F4 - are confirmed first if they are larger than
twinPane.remote.confirmFilesLargerThan (1 MB by default); "Find files" leaves them out when
searching for text on a server.
- F4 opens a file from the server in an editor tab and saves it back. Enter downloads it to a
temporary folder and opens it with the system's default application.
- While a server is being connected, the pane shows "Connecting to ..." with a Cancel button
(or Escape); the other pane stays usable. At startup, a pane that was on a server reconnects
in the background if that needs no question, and otherwise opens the home folder.
- If a server cannot be reached, or the connection breaks during an operation, a dialog
explains what happened and offers Retry (connects again and repeats the interrupted step) or
Cancel. Editor tabs of server files report such errors through VS Code instead.
- Not available on servers yet: file attributes (Ctrl+A), links (Alt+F6), entering archives.
FTP connections have a name, the encryption, host, port, user name and password, and two
options:
- Encryption: none (plain FTP: password and files are sent unencrypted), TLS/SSL explicit
(
AUTH TLS on the normal port, 21) or TLS/SSL implicit (TLS from the start, usually port 990).
A certificate that cannot be verified (self-signed, issued for another host name, expired)
shows its fingerprint and is remembered once trusted; a changed one is refused unless confirmed.
The password is only sent after the certificate was accepted.
- Without a user name, the connection is anonymous and no password is asked for.
- "Use MLSD for listings": auto (if the server offers it), on, or off for servers whose MLSD
answers are broken. Without MLSD, times come from
LIST, which shows the server's local time
in minutes.
- "File name encoding": UTF-8 (default), Windows-1251, Windows-1252, CP866, CP437 or ISO-8859-1
for older servers.
- Passive mode only (active mode is not supported). File transfers use a second connection, so
folders can still be browsed while files are copied; on servers that allow only one connection
per user, everything uses the first one. Modification times are kept if the server supports
MFMT.
Settings
twinPane.detailedView.showExtensionColumn - show extensions in a separate column.
twinPane.detailedView.dateFormat - YYYY-MM-DD, YYYY-MM-DD HH:mm (default) or YYYY-MM-DD HH:mm:ss.
twinPane.integrations.sevenZipPath, twinPane.integrations.rarPath - the 7z / rar
executable; empty means search PATH. Machine-specific, so not synchronized. Easiest to set with
"Select..." in the settings dialog (F9), which also shows the found version.
twinPane.remote.confirmFilesLargerThan - files above this size (bytes) are confirmed before
they are downloaded from a server to be opened (copying and moving never ask); 0 never asks.
Also in the settings dialog (F9).
View mode and sort order are remembered per pane. File icons come from the active VS Code
file icon theme; built-in icons are used for themes without folder icons (Seti) or when no
theme is selected.
F-keys and Ctrl/Alt combinations are VS Code keybindings with when: twinPane.focused,
so they can be remapped in Keyboard Shortcuts and only override VS Code defaults
(F5 = debug etc.) while the file manager has focus.
| |