Skip to content
/ ws Public

A simple CLI tool to quickly open VSCode Workspace

License

Notifications You must be signed in to change notification settings

phe-lab/ws

Repository files navigation

VSCode Workspace CLI

A simple CLI tool to quickly open VSCode Workspace.

Screen Recording 2024-10-06 at 17 40 44

Installation

Using Homebrew:

brew install phe-lab/tap/ws

If you have a Go environment:

go get -u -v github.com/phe-lab/ws

Usage

# List the workspaces
ws

# Open the workspace with the filename "simple-scrollspy.code-workspace"
ws simple-scrollspy

# Execute CLI with the logging level set to "debug"
ws --debug

Configuration

Environment Variables

Name Default Description
VSCODE_WS_PATH ~/code-workspaces The directory path containing the *.code-workspace files
VSCODE_WS_DEBUG Enable the debug mode: VSCODE_WS_DEBUG=true