Skip to main content
Back to Products
vscode

DotCommand

Powerful command shortcuts for VS Code

12 stars2 forks0 issues954 downloadsVersion v2.0.0VSX 2.0.1
DotCommand โ€ข READMEโ€ข8 min read
DotCommand LogoDotCommand Logo

DotCommand

The intelligent command manager for VS Code

Save, organize, and execute commands with AI-powered suggestions, a full analytics dashboard, and a visual rule builder.

Version VS Code License TypeScript

Install ยท Features ยท Shortcuts ยท Configuration ยท Changelog


What is DotCommand?

DotCommand is a VS Code extension that turns your terminal commands into an organized, searchable, intelligent library. It learns from your usage patterns, detects your project's tech stack, and surfaces the right command at the right time โ€” with a beautiful analytics dashboard and a visual rule builder to customize everything.


Features

๐Ÿ“Š Analytics Dashboard (v2.0.0)

A full webview dashboard powered by Chart.js, connected to the analytics engine built in v1.5.0.

DotCommand Analytics DashboardDotCommand Analytics Dashboard
  • Suggestion trends โ€” line chart showing suggestions over the last 7โ€“90 days
  • Category breakdown โ€” doughnut chart of your most-used command categories
  • Response time monitoring โ€” bar chart tracking performance trends
  • Top commands โ€” ranked list of your most accepted suggestions
  • Template popularity โ€” progress-bar rankings across all templates
  • Date range filter โ€” switch between 7, 14, 30, and 90-day views
  • CSV export โ€” download your full analytics data

Open with Ctrl+Shift+A or from the Command Palette.


โš™๏ธ Visual Rule Builder (v2.0.0)

Create custom context rules without touching JSON. The rule builder lets you define exactly when specific commands should be suggested.

DotCommand Visual Rule Builder UIDotCommand Visual Rule Builder UI
  • 4 rule types โ€” File Pattern, Directory, Dependency, Custom
  • 4 conditions โ€” exists, not exists, contains, matches regex
  • Live preview โ€” see the rule logic update as you type
  • Test against workspace โ€” verify a rule matches your current project in one click
  • Weight slider โ€” control how strongly a rule influences suggestions (0โ€“100)
  • Import / Export โ€” fully backward compatible with v1.5.0 JSON rules
  • Sample rules โ€” 5 ready-to-add rules for React, Vue, TypeScript, Docker, and Tests

Open with Ctrl+Shift+B or from the Command Palette.


โšก Enhanced Command Palette (v2.0.0)

The quick command picker โ€” Ctrl+Shift+R โ€” is now significantly smarter.

DotCommand AI Command Palette and TemplatesDotCommand AI Command Palette and Templates
  • Fuzzy search โ€” finds commands even when you type partial characters
  • ML-powered ranking โ€” commands sorted by frequency, recency, category, context, and analytics scores
  • 3 sections โ€” Recent | Suggested (ML top 5) | All Commands
  • Category filtering โ€” type #git, #npm, #docker, #python to filter instantly
  • Command preview โ€” see the full command on hover before running
  • Positive feedback loop โ€” selecting a command improves its future ranking

๐Ÿง  ML-Based Suggestions (v1.5.0)

A weighted scoring engine that learns your habits.

FactorWeightWhat it measures
Frequency30%How often you use a command
Recency30%When you last used it
Category20%Your preferred command categories
Context10%Current project type match
Analytics10%Acceptance rate from analytics data

๐Ÿ“ฆ Package Intelligence (v1.5.0)

DotCommand parses your package.json and suggests smart companion packages:

When you haveIt suggests
reactreact-dom, @types/react
eslintprettier
jest@types/jest
typescript@types/node
axios@types/axios

Auto-detects your package manager: pnpm โ€บ yarn โ€บ bun โ€บ npm


๐Ÿ”ง Custom Context Rules (v1.5.0)

Define your own triggers that activate specific command suggestions based on:

  • File patterns (e.g. Dockerfile, **/*.test.ts)
  • Directory existence (e.g. src/, __tests__/)
  • Package dependencies (e.g. react, typescript)
  • Custom regex patterns

๐ŸŒ Technology Detection

DotCommand automatically detects 20+ technologies in your workspace:

Node.js React Vue Angular TypeScript Next.js Nuxt.js Svelte Electron Docker Git Python Go Rust Flutter/Dart Terraform AWS Gradle Maven CMake pnpm Yarn


๐Ÿ“š Command Library

180+ prepared commands across 20 categories, ready to use:

CategoryExamples
๐Ÿš€ Gitcheckout, commit, push, merge, tag
๐Ÿ“ฆ npm / pnpm / Yarninstall, run, audit, update
๐Ÿณ Dockerbuild, run, compose, logs, prune
โ˜ธ๏ธ Kubernetesapply, get pods, scale, logs
๐Ÿฆ€ Rustcargo build, test, clippy, fmt
๐Ÿน Gogo build, run, test, mod tidy
๐Ÿ—๏ธ Terraforminit, plan, apply, destroy
โ˜๏ธ AWSs3 cp, ec2 ls, lambda invoke
๐Ÿ“ฑ Flutterrun, build APK/iOS/Web, pub get
๐Ÿ Pythonpip, pytest, venv, black, flake8
๐Ÿ” SSH/Remotessh, scp, rsync, ssh-keygen

๐Ÿ—‚๏ธ Smart Organization

  • Auto-categorization โ€” commands sorted into git-workspace, npm-scripts, docker-build, etc.
  • Most Used โ€” promoted after 5 executions
  • Favorites โ€” star commands for instant access
  • 90-Day Trash โ€” soft delete with full recovery window
  • Terminal Learning โ€” auto-captures and categorizes commands from your terminal sessions

Installation

From VS Code Marketplace:

  1. Open VS Code
  2. Press Ctrl+Shift+X to open Extensions
  3. Search for DotCommand
  4. Click Install

From source:

BASH
git clone https://github.com/kareem2099/dotcommand.git
cd dotcommand
npm install
npm run compile
# Press F5 in VS Code to launch Extension Development Host

Quick Start

CODE
1. Install the extension
2. Open any project โ€” DotCommand detects your tech stack automatically
3. Press Ctrl+Shift+R to open the smart command picker
4. Press Ctrl+Shift+A to open the analytics dashboard
5. Press Ctrl+Shift+B to open the visual rule builder

Keyboard Shortcuts

Global

ShortcutAction
Ctrl+Shift+RQuick Command Picker (fuzzy search)
Ctrl+Shift+AAnalytics Dashboard
Ctrl+Shift+BRule Builder
Ctrl+Shift+1Show Favorite Commands
Ctrl+Shift+HShow Recent Commands
Ctrl+Shift+YCommand History
Ctrl+Shift+TTemplate Manager
Ctrl+Shift+MTask Manager
Ctrl+Alt+SpaceSmart Quick Run (ML suggestions)

Editor

ShortcutAction
Ctrl+Shift+SSave Command from selection
Ctrl+Shift+VView Commands

Tree View (context-aware)

ShortcutAction
Ctrl+Shift+FToggle Favorite
Ctrl+Shift+EnterRun Command
Ctrl+Shift+CCopy Command
Ctrl+Shift+/Search / Filter
Ctrl+Shift+XClear Filters

Configuration

JSONC
{
  // Auto-save
  "dotcommand.autoSave.enabled": true,
  "dotcommand.autoSave.minLength": 2,
  "dotcommand.autoSave.showNotifications": false,

  // Storage
  "dotcommand.general.maxCommands": 1000,
  "dotcommand.mostUsedThreshold": 5,

  // ML suggestions
  "dotcommand.ml.enabled": true,
  "dotcommand.ml.frequencyWeight": 0.3,
  "dotcommand.ml.recencyWeight": 0.3,
  "dotcommand.ml.categoryWeight": 0.2,
  "dotcommand.ml.contextWeight": 0.1,
  "dotcommand.ml.analyticsWeight": 0.1,

  // Analytics
  "dotcommand.analytics.enabled": true,
  "dotcommand.analytics.retentionDays": 90,

  // Terminal management
  "dotcommand.terminal.cleanup.enabled": true,
  "dotcommand.terminal.cleanup.timeoutMinutes": 30,
  "dotcommand.terminal.category.enabled": true,

  // Package intelligence
  "dotcommand.packageIntelligence.enabled": true,
  "dotcommand.packageIntelligence.autoDetectPackageManager": true,

  // Custom rules
  "dotcommand.customRules.enabled": true
}

Project Structure

CODE
src/
โ”œโ”€โ”€ extension.ts                    Main entry point
โ”œโ”€โ”€ commands/
โ”‚   โ”œโ”€โ”€ handlers.ts                 All command handlers (incl. Quick Picker v2.0)
โ”‚   โ”œโ”€โ”€ prepared.ts                 Prepared commands loader
โ”‚   โ”œโ”€โ”€ detection.ts                Auto-categorization logic
โ”‚   โ””โ”€โ”€ validator.ts                Command validation
โ”œโ”€โ”€ features/
โ”‚   โ””โ”€โ”€ SuggestionQuickAccess.ts    Status bar ML suggestions
โ”œโ”€โ”€ providers/
โ”‚   โ”œโ”€โ”€ treeView.ts                 My Commands tree
โ”‚   โ””โ”€โ”€ preparedCommandsTreeDataProvider.ts
โ”œโ”€โ”€ services/
โ”‚   โ”œโ”€โ”€ analyticsService.ts         Analytics engine (v1.5.0)
โ”‚   โ””โ”€โ”€ updateService.ts            Version update panels
โ”œโ”€โ”€ utils/
โ”‚   โ”œโ”€โ”€ mlSuggestions.ts            ML scoring engine (v1.5.0)
โ”‚   โ”œโ”€โ”€ customContextRules.ts       Rule evaluation engine (v1.5.0)
โ”‚   โ”œโ”€โ”€ packageJsonParser.ts        Package intelligence (v1.5.0)
โ”‚   โ”œโ”€โ”€ commandHistory.ts           Global command history
โ”‚   โ””โ”€โ”€ commandTemplates.ts         Template engine
โ”œโ”€โ”€ webviews/
โ”‚   โ”œโ”€โ”€ analyticsDashboard.ts       ๐Ÿ“Š Analytics Dashboard (v2.0.0)
โ”‚   โ”œโ”€โ”€ ruleBuilder.ts              โš™๏ธ Visual Rule Builder (v2.0.0)
โ”‚   โ”œโ”€โ”€ templateManager.ts          Template Manager UI
โ”‚   โ””โ”€โ”€ taskManager.ts              Task Manager UI
โ””โ”€โ”€ data/
    โ””โ”€โ”€ preparedCommands.json       180+ prepared commands (JSON)

VS Code Tasks Integration

DotCommand integrates with VS Code's built-in task system. Generate a full task suite in one click:

  1. Open My Commands sidebar
  2. Click the Create New Task Template button
  3. Choose your project type: NPM, Git, Docker, Python, Frontend, or Custom
  4. Tasks appear in Ctrl+Shift+P โ†’ Tasks: Run Task

Supported templates:

  • ๐Ÿ“ฆ NPM (11 tasks) โ€” install, dev, build, test, lint, format, audit, update
  • ๐Ÿš€ Git (9 tasks) โ€” status, add, commit, push, pull, log, branch, merge
  • ๐Ÿณ Docker (9 tasks) โ€” build, run, images, containers, compose, prune
  • ๐Ÿ Python (8 tasks) โ€” venv, pip, pytest, black, flake8, requirements
  • โš›๏ธ Frontend (8 tasks) โ€” dev, build, preview, test, e2e, lint, type-check
  • ๐Ÿ› ๏ธ Custom (6 tasks) โ€” placeholders for any project type

Contributing

See CONTRIBUTING.md for guidelines.


License

MIT License โ€” see LICENSE for details.


Support


Built with โค๏ธ by FreeRave

Related Products

โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ
โ€Œ