mi-open-tcmd is a Visual Studio Code extension that allows you to quickly open the folder containing any file in Windows Total Commander directly from WSL Ubuntu. Perfect for developers working in WSL who want to access their files through Total Commander's powerful file management interface.
- Right-click integration: Right-click on any file in the Explorer or Editor to open its containing folder in Total Commander
- WSL to Windows path conversion: Automatically converts WSL Ubuntu paths to Windows paths that Total Commander can understand
- Configurable Total Commander path: Customize the path to your Total Commander installation
- Flexible arguments: Configure Total Commander startup arguments to control panel behavior and opening mode
- Converts paths like
/home/user/project/file.js
to\\wsl.localhost\Ubuntu-22.04\home\user\project\
- Opens Total Commander directly in the correct folder
- Works seamlessly between WSL Ubuntu and Windows environments
- Windows 10/11 with WSL2 enabled
- Ubuntu 22.04 (or compatible WSL distribution)
- Total Commander installed on Windows
- Visual Studio Code running in WSL Ubuntu environment
This extension contributes the following settings:
-
mi-open-tcmd.totalCommanderPath
: Full path to Total Commander executable in Windows- Default:
"C:\Program Files\totalcmd\TOTALCMD64.EXE"
- Common alternatives:
"C:\Program Files (x86)\totalcmd\TOTALCMD.EXE"
(32-bit)"C:\totalcmd\TOTALCMD64.EXE"
(custom installation)
- Default:
-
mi-open-tcmd.totalCommanderArgs
: Additional arguments for Total Commander- Default:
"/O /T"
- Available options:
/O
= Open new tab if Total Commander is already running/T
= Specify target directory/L
= Load directory in left panel/R
= Load directory in right panel/S
= Open in separate instance
- Example configurations:
"/O /R"
= Open in new tab, right panel"/S /T"
= Open in separate instance"/O /L"
= Open in new tab, left panel
- Default:
- Right-click method: Right-click on any file in VS Code's Explorer panel and select "Abrir con Total Commander"
- Editor method: Right-click in any open file editor and select "Abrir con Total Commander"
- Command Palette: Open Command Palette (
Ctrl+Shift+P
) and search for "Abrir con Total Commander"
{
"mi-open-tcmd.totalCommanderPath": "C:\\totalcmd\\TOTALCMD64.EXE",
"mi-open-tcmd.totalCommanderArgs": "/O /R"
}
- Go to
File > Preferences > Settings
(orCtrl+,
) - Search for "Total Commander"
- Modify the path and arguments as needed
- Path with spaces: Folders with spaces in their names are supported and handled correctly
- WSL distribution: Currently configured for Ubuntu-22.04. Other distributions may require path adjustments
- Total Commander not found: If you get an error, verify the Total Commander path in settings
- Development mode: When testing with F5, configure settings in the development instance, not the main VS Code window
- Extension not working: Check that Total Commander path is correct in settings
- Wrong directory opens: Verify that WSL path conversion is working by checking the console output
- Permission errors: Ensure Total Commander has proper permissions to access WSL paths
Initial release of mi-open-tcmd:
- Basic functionality to open folders in Total Commander from WSL
- Configurable Total Commander path and arguments
- Right-click context menu integration
- WSL to Windows path conversion
- Support for paths with spaces
This extension works by:
- Capturing the file path from VS Code's WSL environment
- Converting the WSL path format to Windows UNC path format
- Using
wslpath
command for accurate path conversion - Executing Total Commander with the converted path via
cmd.exe
The path conversion transforms:
- From:
/home/andrew/project/file.js
- To:
\\wsl.localhost\Ubuntu-22.04\home\andrew\project\
This extension follows VS Code's extension guidelines and best practices for creating extensions.
Enjoy seamless file management between WSL and Windows!