vscli
A CLI tool to launch vscode projects, which supports devcontainers.
Features
- A shorthand for launching vscode projects
- Detects whether a project is a devcontainers project, and launches the devcontainer instead
- Supports the insiders version of vscode
Installation
Cargo
Install vscli using cargo on Windows or Linux:
Homebrew
Install vscli using homebrew on Linux:
Chocolatey
Install vscli using Chocolatey on Windows:
Additional steps
You can set a shorthand alias for vscli in your shell's configuration file:
Usage
Commandline
After installation, the vscli command will be available:
)
Examples
You can launch a project using the default behaviour:
The default behaviour tries to dectect whether the project is a devcontainers project. If it is, it will launch the devcontainer instead - if not it will launch vscode normally.
You can change the launch behvaiour using the --behaviour flag:
You can launch the insiders version of vscode using the --insiders flag:
Additional arguments can be passed to the code executable, by specifying them after --:
Read more about the code flags, by executing code --help.