A VS Code extension that allows you to add decorative text beside your code lines and manage Vite development projects.
- Add Text Beside Code: Adds customizable text at the end of any code line
- Clear Text Decorations: Removes all text decorations from the editor
- Interactive text placement with visual feedback
- Start Vite Dev Server: Launch a Vite development server in a dedicated terminal
- Read Vite Logs: Quick access to Vite terminal logs for debugging
- Smart terminal management and project path detection
- Capture and Display Logs: Automatically parse console.log statements and display their output as decorations beside the code
- Clear Log Decorations: Remove all log decorations from the current file
- Generate Mock Logs: Create test log entries for demonstration and testing purposes
- Real-time Log Monitoring: Advanced log tracking with timestamp information
- Automatic welcome file opening when extension activates
- Helpful documentation and command reference
-
Clone or download this extension project
-
Install dependencies using Yarn:
yarn install
-
Compile the TypeScript source:
yarn compile
-
Press
F5to open a new VS Code window with the extension loaded
# Using the provided Makefile
make install
make build
make debugAll commands are available through the Command Palette (Ctrl+Shift+P or Cmd+Shift+P):
| Command | Description |
|---|---|
Hello World |
Display a simple greeting message |
Add Text Beside Code |
Add decorative text at the end of the current line |
Clear Text Beside Code |
Remove all text decorations from the editor |
Start Vite Dev Server |
Launch Vite development server in terminal |
Read Vite Logs |
Focus on Vite terminal to view logs |
Capture and Display Logs |
Parse console.log statements and show output beside code |
Clear Log Decorations |
Remove all log decorations from the current file |
Generate Mock Logs |
Create test log entries for demonstration |
- Place your cursor on any line of code
- Open Command Palette (
Ctrl+Shift+P) - Run "Add Text Beside Code"
- See the decorative text appear at the end of the line
- Open a JavaScript/TypeScript file with
console.logstatements - Run "Capture and Display Logs" command
- See log outputs displayed beside each
console.logline with timestamps - Use "Clear Log Decorations" to remove log displays
- Use "Start Vite Dev Server" command
- Enter the path to your Vite project when prompted
- The extension will create a dedicated terminal and start the dev server
- Use "Read Vite Logs" to quickly access the terminal output
The extension uses the following default settings for text decorations:
{
contentText: ' // Your text here',
color: '#888888',
fontStyle: 'italic'
}- Node.js (v16 or higher)
- Yarn package manager
- VS Code
# Install dependencies
yarn install
# Compile TypeScript
yarn compile
# Watch mode for development
yarn watch
# Run linting
yarn lint
# Run tests
yarn test# Install dependencies
make install
# Build the extension
make build
# Start development with watch mode
make dev
# Debug the extension
make debug
# Clean build artifacts
make clean
# Run all quality checks
make checkβββ src/
β βββ extension.ts # Main extension logic
β βββ commands/
β β βββ viteManager.ts # Vite project management
β βββ test/
β βββ extension.test.ts # Test suite
βββ projects/
β βββ test-vite-project/ # Test project for debugging
βββ .vscode/
β βββ launch.json # Debug configuration
β βββ settings.json # Workspace settings
β βββ tasks.json # Build tasks
βββ package.json # Extension manifest
βββ tsconfig.json # TypeScript configuration
βββ Makefile # Build automation
βββ README.md # This file
When you press F5 to start debugging, the extension will automatically:
- Compile the TypeScript source
- Open a new VS Code window with the extension loaded
- Open the test Vite project located in
projects/test-vite-project/
This setup allows you to immediately test:
- π Start Vite Dev Server (auto-suggests the test project path)
- π Read Vite Logs (terminal management)
- β¨ Text decorations (add text beside code lines)
- F5 - Start debugging (opens test project automatically)
- Ctrl+Shift+P β "Start Vite Dev Server" - Uses test project by default
- Ctrl+Shift+P β "Add Text Beside Code" - Test on any file
- Ctrl+Shift+P β "Read Vite Logs" - Focus Vite terminal
- Text decorations persist across VS Code sessions (by design)
- Vite terminal management requires manual path input
- Extension activates on VS Code startup (opens welcome file automatically)
- Initial release with text decoration functionality
- Added Vite project management commands
- Implemented welcome file system
- Full Yarn support for development workflow
- Fork the repository
- Create a feature branch:
git checkout -b feature-name - Make your changes and test thoroughly
- Commit with descriptive messages:
git commit -m "Add feature description" - Push to your branch:
git push origin feature-name - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
For issues, questions, or contributions:
- Open an issue on the project repository
- Check existing documentation in the
vsc-extension-quickstart.mdfile - Review VS Code extension development guidelines
Happy coding! π