A VS Code extension that simulates coding activity to achieve the "loafing" effect - making it look like you're working hard when you're actually taking a break!
- 🐍 Python Loafing: Generates realistic Python code with data science, web development, and algorithm patterns
- 🐹 Go Loafing: Creates authentic Go code with web servers, structs, and concurrency patterns
- 📘 TypeScript Loafing: Produces modern TypeScript code with React hooks, APIs, and type definitions
- ⌨️ Realistic Typing: Simulates human typing speed with natural delays and pauses
- 💬 Smart Comments: Adds realistic TODO, FIXME, and NOTE comments
- 🎯 Multiple Languages: Switch between Python, Go, and TypeScript on demand
- Clone this repository
- Run
npm installto install dependencies - Press
F5to run the extension in a new Extension Development Host window - Or package it with
vsce packageand install the.vsixfile
- Start Loafing: Python (
Ctrl/Cmd+Shift+L P) - Begin simulating Python development - Start Loafing: Go (
Ctrl/Cmd+Shift+L G) - Begin simulating Go development - Start Loafing: TypeScript (
Ctrl/Cmd+Shift+L T) - Begin simulating TypeScript development - Stop Loafing (
Ctrl/Cmd+Shift+L S) - Stop the current loafing session
- Select your preferred programming language
- The extension creates a new file and starts "typing" realistic code
- Code includes proper syntax, imports, functions, classes, and comments
- Typing speed and patterns mimic human behavior
- Stop anytime with the stop command
- Data science imports (numpy, pandas, sklearn)
- Function definitions with type hints
- Class definitions with proper structure
- Async/await patterns
- Algorithm implementations
- Package declarations and imports
- Struct definitions with JSON tags
- HTTP handlers and middleware
- Error handling patterns
- Main function setups
- Interface and type definitions
- React hooks and components
- API service classes
- Async/await patterns
- Generic type usage
| Command | Windows/Linux | macOS |
|---|---|---|
| Python Loafing | Ctrl+Shift+L P |
Cmd+Shift+L P |
| Go Loafing | Ctrl+Shift+L G |
Cmd+Shift+L G |
| TypeScript Loafing | Ctrl+Shift+L T |
Cmd+Shift+L T |
| Stop Loafing | Ctrl+Shift+L S |
Cmd+Shift+L S |
This extension is for entertainment purposes only. Please use responsibly and ensure you're still meeting your actual work commitments!
# Install dependencies
npm install
# Compile TypeScript
npm run compile
# Watch for changes
npm run watchFeel free to contribute more realistic code patterns, additional languages, or improvements to the typing simulation!
MIT License - Feel free to fork and modify as needed.
Happy loafing! 摸鱼快乐! 🐟