Overview Version History Q & A Rating & Review
Code Court - VS Code Extension
Seamlessly access, create, and manage your Code Court snippets directly from VS Code.
✨ Features
🔐 Secure Authentication
One-click OAuth login - No manual token copy/paste
Automatic browser callback
Secure token storage in VS Code SecretStorage
90-day session duration
📚 Snippet Management
Browse all your snippets in a dedicated sidebar
Create snippets from selected code or entire files
Edit snippets (title, description, visibility)
Delete snippets with confirmation
Insert snippets into active editor with one click
🔍 Smart Search & Filtering
Live filtering by keywords, tags, or language
Search across title, description, and code
Clear filter with one click
"No results" state with helpful message
🎨 Rich UX Features
Snippet variables support ($1, ${TM_FILENAME}, etc.)
Hover preview with Markdown-formatted code
Auto-detect language from file extension
Progress indicators for all operations
Keyboard shortcuts for quick actions
🌐 Integration
Open in browser to view/share on Code Court
Visibility control (Public, Protected, Private)
Tags support for better organization
Auto-refresh after create/edit/delete
🚀 Getting Started
Installation
Install from VS Code Marketplace (coming soon)
Or install manually:
code --install-extension codecourt-vscode-0.1.0.vsix
First Use
Open the Code Court sidebar (click the icon in Activity Bar)
Click "Sign In" button
Browser opens to Code Court authentication
Approve access
Automatically redirected back to VS Code
Your snippets load automatically! 🎉
📖 Usage
Creating a Snippet
From selection:
Select code in any file
Right-click > "Code Court: Create Snippet from Selection"
Or: Ctrl+Shift+P > "Code Court: Create Snippet from Selection"
From entire file:
Open any file (no selection needed)
Ctrl+Shift+P > "Code Court: Create Snippet from Selection"
Wizard steps:
Enter title (min 3 characters)
Enter description (optional)
Enter tags, comma-separated (optional)
Select visibility (Public/Protected/Private)
Inserting a Snippet
From sidebar:
Click any snippet in sidebar
Code inserts at cursor position
From search:
Ctrl+Shift+P > "Code Court: Search Snippets"
Enter search query
Select snippet from results
Code inserts at cursor position
Editing a Snippet
Right-click snippet in sidebar
Select "Edit Snippet"
Update title, description, or visibility
Confirm
Filtering Snippets
Click search icon in sidebar toolbar
Enter filter keywords
Sidebar shows matching snippets only
Click clear icon to remove filter
⌨️ Keyboard Shortcuts
Command
Shortcut
Description
Sign In
-
Authenticate with Code Court
Create Snippet
-
Create from selection/file
Search Snippets
-
Filter sidebar snippets
Refresh Snippets
-
Reload from server
Tip: Use Command Palette (Ctrl+Shift+P) to access all commands
🎨 Extension Settings
This extension contributes the following settings:
codecourt.apiUrl: Code Court API URL (default: https://www.codecourt.dev)
codecourt.insertMode: How to insert snippets (cursor or replace)
📸 Screenshots
Browse and manage all your snippets
Create Snippet Wizard
Easy step-by-step snippet creation
Hover Preview
Rich preview on hover
Search & Filter
Find snippets instantly
🔒 Privacy & Security
OAuth 2.0 authentication with secure token storage
Token encryption via VS Code SecretStorage API
HTTPS only - All API calls encrypted
No data collection - Your snippets stay private
Open source - Review the code anytime
🐛 Known Issues
None at the moment! Found a bug? Report it here
📝 Release Notes
0.1.0 (Initial Release)
Features:
Modern OAuth authentication
Complete CRUD operations (Create, Read, Update, Delete)
Sidebar filtering with live search
Snippet variables support
Hover preview
Edit snippet functionality
Rich error handling
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Fork the repository
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Open a Pull Request
📄 License
This project is licensed under the MIT License - see the LICENSE file for details.
🔗 Links
💬 Support
Need help? Have questions?
Made with ❤️ for developers by developers