VS Code Commands reference

May 12, 2026 · View on GitHub

All commands can be invoked from the Command Palette (Ctrl-Shift-P / Cmd-Shift-P); most are also surfaced as buttons in the OCP CAD Viewer sidebar.

CommandTitleNotes
ocpCadViewer.ocpCadViewerOpen viewerBound to Ctrl-K V / Cmd-K V in Python editors
ocpCadViewer.openViewerOpen viewer (button)Sidebar button variant of the above
ocpCadViewer.openConsoleOpen Jupyter Console (button)Requires the Jupyter extension
ocpCadViewer.toggleWatchToggle visually watching the CAD modelSwitches the status bar between OCP: <port>·DEBUG and OCP: <port>
ocpCadViewer.quickstartQuickstart installationTakes one arg: "cadquery" or "build123d". Used by the Quickstart sidebar buttons
ocpCadViewer.installLibraryInstall libraryRuns the matching entry of OcpCadViewer.advanced.installCommands
ocpCadViewer.installPythonModuleInstall ocp_vscode libraryInstalls the Python companion at the version that matches the extension
ocpCadViewer.installJupyterExtensionInstall Jupyter extension ms-toolsai.jupyterConvenience for the Jupyter prerequisite
ocpCadViewer.installVscodeSnippetsInstall CAD snippets into <project>/.vscode/Writes a .code-snippets file built from OcpCadViewer.snippets.dotVscodeSnippets
ocpCadViewer.downloadExamplesDownload examples for a specific libraryUses OcpCadViewer.advanced.exampleDownloads
ocpCadViewer.pasteSnippetPaste code snippetInserts the corresponding OcpCadViewer.advanced.codeSnippets entry at the cursor
ocpCadViewer.refreshLibrariesRefresh libraries listRe-scans the active Python env
ocpCadViewer.preferencesOpen preferencesFilters Settings to "OCP CAD Viewer"
ocpCadViewer.outputToggle OCP CAD Viewer output panelShortcut to the extension's Output channel

Keybindings

KeybindingCommandWhen
Ctrl-K V / Cmd-K VocpCadViewer.ocpCadViewerActive editor is focused on a Python file

Override or add bindings via VS Code's "Preferences: Open Keyboard Shortcuts (JSON)".