This directory contains VS Code workspace configuration for optimal development experience with PCL (Persona Control Language).
- settings.json - Workspace settings (editor, TypeScript, linting, formatting)
- extensions.json - Recommended extensions
- tasks.json - Build, test, and automation tasks
- launch.json - Debugging configurations
- keybindings.json - Custom keyboard shortcuts
-
Install Recommended Extensions:
Open Command Palette (Ctrl+Shift+P) → "Extensions: Show Recommended Extensions" → Install All -
Verify Configuration:
npm install npm run build npm run test -
Enable Format on Save: Already configured in settings.json ✅
-
Max memory: 4096MB
-
Auto imports: Enabled
-
Inlay hints: Enabled for better code readability
Excluded directories for performance:
-
node_modules/
-
dist/
-
coverage/
-
.git/
Excluded from search to improve speed:
-
node_modules/
-
dist/
-
coverage/
-
.vscode-test/
Run tasks via:
- Command Palette:
Tasks: Run Task - Keyboard:
Ctrl+Shift+B(build) orCtrl+Shift+T(test) - Menu: Terminal → Run Task
-
npm: build - Compile TypeScript
-
npm: build:watch - Build with auto-rebuild
-
npm: test - Run all tests
-
npm: test:watch - Test with auto-rerun
-
npm: test:coverage - Generate coverage report
-
npm: lint - Check code style
-
npm: lint:fix - Fix code style issues
-
npm: format - Format code with Prettier
-
npm: clean - Clean build artifacts
- 🚀 Quick Start - Install deps + build
- ✅ Quality Gate - Lint + type check + test (sequential)
- 🔍 Pre-Commit Check - Fix lint + format + test
- 📊 Coverage Report - Generate and open HTML coverage
-
🐛 Debug Current Test
- Debugs the currently open test file
- Usage: Open a .test.ts file → F5
-
🧪 Debug All Tests
- Debugs the entire test suite
- Usage: Select config → F5
-
🎯 Debug Parser
- Debugs the parser module
- Usage: Select config → F5
- Click left of line number to set breakpoint
- Red dot = active breakpoint
- F5 = Start debugging
- F10 = Step over
- F11 = Step into
- Shift+F11 = Step out
| Shortcut | Action |
|---|
| Ctrl+Shift+T | Run tests |
| Ctrl+Shift+B | Build project |
| Ctrl+Shift+Q | Quality gate check |
| Ctrl+K Ctrl+D | Copilot generate |
| Ctrl+K Ctrl+I | Copilot explain |
| F5 | Start debugging |
| Ctrl+Shift+P | Command palette |
-
GitHub Copilot - AI pair programmer
-
GitHub Copilot Chat - AI assistant
-
ESLint - JavaScript/TypeScript linting
-
Prettier - Code formatter
- TypeScript Next - Latest TypeScript features
- Error Lens - Inline error display
- Code Spell Checker - Catch typos
- Vitest Explorer - Test runner integration
- Test Explorer - Unified test UI
-
GitLens - Enhanced Git integration
-
GitHub Pull Requests - PR management
-
Markdown All in One - Markdown editing
-
Markdown Mermaid - Diagram support
-
Markdown Preview Enhanced - Rich preview
- Todo Tree - Todo comment tracking
- Better Comments - Highlighted comments
- Coverage Gutters - Visual coverage
- On Save: Automatically formats files
- On Paste: Formats pasted code
- Organize Imports: Auto-sorts imports
- Auto Imports: Suggests and adds imports
- Parameter Hints: Shows parameter info
- Quick Suggestions: Context-aware completions
- Fix All ESLint: Fixes linting issues on save
- Organize Imports: Sorts imports on save
Check these regularly:
# Build status
npm run build
# → Should complete in <10s
# Test results
npm run test
# → All tests should pass
# Type checking
npx tsc --noEmit
# → Should show 0 errors
# Code coverage
npm run test:coverage
# → Should be ≥80%
# Linting
npm run lint
# → Should show 0 errors
Ctrl+Shift+P → "TypeScript: Restart TS Server"
Ctrl+Shift+P → "ESLint: Restart ESLint Server"
- Check TypeScript server memory: 4096MB in settings.json
- Restart TS server
- Close unused editor tabs
Ctrl+Shift+P → "Vitest: Restart Test Runner"
- Start:
npm run dev(watch mode) - Code: Use Copilot for assistance
- Test:
npm run test:watchin parallel - Check: Run quality gate before commits
npm run lint:fix
npm run format
npm run test
npm run buildOr use the 🔍 Pre-Commit Check task.
- Use GitLens to view file history
- Run quality gate on PR branch
- Check coverage report
- Verify all tasks pass
- Split Editor: Drag tabs to split view (code + test side-by-side)
- Zen Mode:
Ctrl+K Zfor distraction-free coding - Breadcrumbs: Navigate code structure at top of editor
- Outline: View file structure in sidebar
- Timeline: See file change history (GitLens)
- Problems:
Ctrl+Shift+Mto see all errors/warnings - Terminal:
Ctrl+`to toggle integrated terminal - Multi-Cursor:
Alt+ClickorCtrl+Alt+Up/Down
Happy Coding! 🚀