Linux command
codium 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Open current directory
codium .
Open specific files
codium [file1.js] [file2.js]
Open file at specific line
codium -g [file.js:25:10]
Compare two files
codium -d [file1.js] [file2.js]
Install an extension
codium --install-extension [ms-python.python]
List installed extensions
codium --list-extensions
Open in new window
codium -n [path/to/project]
说明
codium is the command-line interface for VSCodium, a community-driven, freely-licensed binary distribution of Visual Studio Code without Microsoft telemetry and tracking. It provides the same functionality as VS Code with enhanced privacy. The CLI is functionally identical to VS Code's code command. All files, folders, and multi-root workspace features work the same way. Extensions are sourced from the Open VSX Registry instead of Microsoft's marketplace by default. Settings are stored in ~/.config/VSCodium/User/settings.json on Linux and extensions in ~/.vscode-oss. This separation from VS Code allows running both editors simultaneously without conflicts. VSCodium is available as native packages for Windows, macOS, and Linux, as well as Flatpak and Snap packages. The standalone CLI is also distributed separately for headless and remote scenarios.
参数
- -n, --new-window
- Open a new VSCodium window.
- -r, --reuse-window
- Reuse the last active window.
- -g, --goto _file:line:column_
- Open file at specific line and optional column position.
- -d, --diff _file1_ _file2_
- Open diff editor comparing two files.
- -m, --merge _path1_ _path2_ _base_ _result_
- Perform three-way merge.
- -w, --wait
- Wait for files to be closed before returning.
- --locale _locale_
- Set display language.
- --user-data-dir _dir_
- Specify directory for user data; enables isolated instances.
- --extensions-dir _dir_
- Set root path for extensions.
- --disable-extensions
- Disable all installed extensions.
- --disable-gpu
- Disable GPU hardware acceleration.
- --inspect-extensions _port_
- Debug extensions at specified port.
- -s, --status
- Print process usage and diagnostics.
- --verbose
- Print verbose output.
- -v, --version
- Display version information.
- -h, --help
- Show help information.
FAQ
What is the codium command used for?
codium is the command-line interface for VSCodium, a community-driven, freely-licensed binary distribution of Visual Studio Code without Microsoft telemetry and tracking. It provides the same functionality as VS Code with enhanced privacy. The CLI is functionally identical to VS Code's code command. All files, folders, and multi-root workspace features work the same way. Extensions are sourced from the Open VSX Registry instead of Microsoft's marketplace by default. Settings are stored in ~/.config/VSCodium/User/settings.json on Linux and extensions in ~/.vscode-oss. This separation from VS Code allows running both editors simultaneously without conflicts. VSCodium is available as native packages for Windows, macOS, and Linux, as well as Flatpak and Snap packages. The standalone CLI is also distributed separately for headless and remote scenarios.
How do I run a basic codium example?
Run `codium .` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does -n, --new-window do in codium?
Open a new VSCodium window.