The Command Executor extension enables the execution of commands within Visual Studio Code and its extensions through clickable links, which can be accessed from outside the editor environment or Markdown previews.
- Execute commands directly from links.
- Supports passing arguments to the commands.
- Install the extension from the VS Code marketplace.
- Once installed, commands can be executed by clicking on links formatted as
vscode:https://eliostruyf.execcommand?command=<command id>&args=<args>
.
Execute the command to create a new untitled file:
[New untitled file](vscode:https://eliostruyf.execcommand?command=workbench.action.files.newUntitledFile)
Execute the command to open the simple browser with a specific URL:
[Show simple browser](vscode:https://eliostruyf.execcommand?command=simpleBrowser.show&args=https://frontmatter.codes/)
- Open the command palette (
ctrl+shift+p
orcmd+shift+p
). - Search for the command you want to execute.
- Hover over the command, and click on the gear icon.
- Right-click on the command and select "Copy Command ID".