Settings and commands#
Provider IDs#
Role |
ID |
|---|---|
Environment manager |
|
Package manager |
|
Conda Code setting#
conda-code.condaExecutable#
Absolute path or command name for the primary conda executable.
conda-express delegates supplied by
this setting, CONDA_EXE, or python.condaPath are also accepted. Bare cx
and cxz work on every platform. An executable path’s basename must be exactly
cx or cxz on macOS and Linux, or cx.exe or cxz.exe on Windows. Conda
Code does not search PATH for or install these delegates. Invoking one follows
conda-express’s normal bootstrap behavior.
Type: string
Default: empty
Scope: machine-overridable
An empty value uses this precedence:
CONDA_EXEpython.condaPathcondaonPATH
The primary conda handles creation, workspaces, tasks, and plugin features. It
does not limit regular environment discovery to one installation. Existing
regular environments use the owning root’s conda hooks when an owning conda
executable is available. Package changes and safe deletion use that executable.
Commands#
Conda Code: Refresh Environments#
Command ID: conda-code.refresh
Clears the package cache and refreshes regular environments, workspace
environments, and workspace task discovery. The command also expires cached
conda information and forces a background conda info --json request. The
current environment list remains available while that request runs.
Conda Code automatically schedules the same background enrichment when an exact
configuration file reported by conda changes. A lightweight cache fingerprint
detects changes to reported files, relevant conda environment inputs, or the
configured executable while VS Code was closed. The 24-hour cache age remains a
fallback for sources conda had not reported. Conda Code also schedules refreshes
when conda.toml, pixi.toml, pyproject.toml, or conda.lock changes.
Project creation inputs such as environment.yml, explicit.txt, and
conda-lock.yml are not watched.
Conda Code: Export Environment SBOM#
Command ID: conda-code.exportEnvironmentSbom
Exports the selected Conda Code environment through conda-sboms after choosing
a CycloneDX JSON destination. The save dialog proposes
<environment>.cdx.json.
Conda Code: Export Workspace Lockfile SBOM#
Command ID: conda-code.exportWorkspaceLockfileSbom
Exports a declared workspace environment directly from its existing lockfile. The command asks for the declared environment and platform, offers reproducible output without a timestamp, and then asks for a CycloneDX JSON destination.
Conda Code: Create Environment from File#
Command ID: conda-code.createEnvironmentFromFile
Creates a regular named environment from the supported file open in the active editor, then selects the result for that file’s registered Python project. The file must be at the project root and use one of these exact names:
environment.ymlenvironment.yamlexplicit.txtconda-lock.ymlconda-lock.yaml
A action appears in the editor title for those files. When several supported files exist, the active file is used without another prompt. See Project creation for naming and exact-input behavior.
Conda Code: Run Workspace Task#
Command ID: conda-code.runWorkspaceTask
Opens a picker containing the tasks declared by the active, confirmed
workspace manifest, then runs the selected native VS Code task. A
action appears in the editor title for conda.toml, pixi.toml,
and pyproject.toml. Conda Code validates the active file before asking
conda-workspaces for its tasks.
Conda Code: Create Workspace Environment#
Command ID: conda-code.createWorkspaceEnvironment
Adds a named environment declaration to a selected existing workspace. The
feature picker includes the default feature and every named feature reported by
conda-workspaces. Clearing the default feature passes --no-default-feature.
Conda Code: Import environment.yml into Workspace#
Command ID: conda-code.importWorkspaceEnvironment
Imports one environment.yml or environment.yaml as a new named environment
in a selected existing workspace.
Conda Code: Remove Workspace Environment Declaration#
Command ID: conda-code.removeWorkspaceEnvironment
Removes a selected environment declaration after a modal confirmation. The operation also removes its complete lock records and installed prefix. Deleting the environment from the Python Environments view only cleans the prefix and keeps the declaration.
Conda Code: Show Workspace Lockfile Status#
Command ID: conda-code.showWorkspaceLockStatus
Shows whether the selected workspace’s lockfile is current, stale, or missing, with the reason reported by conda-workspaces. This works even when no workspace environment is installed.
Conda Code: Update Workspace Lockfile#
Command ID: conda-code.updateWorkspaceLockfile
Solves the declared workspace environments and writes the lockfile. This can also replace a malformed lockfile.
Conda Code: Install Workspace Environment from Lockfile#
Command ID: conda-code.installLockedWorkspaceEnvironment
Installs a selected declaration with conda workspace install --locked. A
missing or stale lockfile stops installation. The command does not fall back to
solving or add Quick Create packages.
Conda Code: Preview Workspace Image#
Command ID: conda-code.previewWorkspaceImage
Asks for an environment, a declared Linux platform, an image tag, and a default command. Opens the generated Containerfile and included file list as text documents without building an image or requiring Docker.
Conda Code: Build Workspace Image#
Command ID: conda-code.buildWorkspaceImage
Builds the selected environment and Linux platform through a VS Code Task after conda-workspaces validates the build inputs. Choose between loading the image into Docker and exporting an OCI archive. The task terminal shows progress and allows cancellation.