The 10x Pretender is a VS Code extension that makes you look like a coding genius by simulating realistic typing from your clipboard or AI-generated code. Perfect for live coding demos, presentations, or impressing colleagues with your "incredible" typing speed.
To use the 10x Pretender extension:
- Obtain a Google Generative AI API key from Google AI Studio.
- Set the API key in the extension settings to enable Gemini code generation.
- Toggle the typing mode using the status bar icon or keyboard shortcut.
- Realistic Typing Simulation: Automatically types text from your clipboard at a natural pace.
- AI-Powered Code Generation: Integrates with Google's Gemini API to generate code snippets based on your plain English descriptions.
- Status Bar Integration: Easily toggle the typing mode on and off with a visible status bar icon.
- Seamless Pausing: Automatically pauses typing when you move the cursor to a different position, and resumes when you return.
- Custom Text Entry: Manually input text to be typed out if you don't want to use clipboard content.
- A stable internet connection is required to use the Gemini code generation feature.
- You must have a Google Generative AI API key to use the AI code generation feature. You can get one at Google AI Studio.
10x-pretender.apiKey
: API key for Google Generative AI.
To access the commands, press Ctrl+Shift+P
(Windows/Linux) or Cmd+Shift+P
(Mac) to open the command palette and type the following commands:
- 10x Pretender: Toggle Typing Mode:
10x-pretender.toggle
- 10x Pretender: Set Text to Type:
10x-pretender.setClipboard
- 10x Pretender: Generate Code with Gemini:
10x-pretender.geminiPrompt
-
Using Clipboard Content:
- Copy any code or text to your clipboard
- Click the "10x Pretender: Off" button in the status bar to toggle it on
- Watch as the extension types out your clipboard content
-
Using AI-Generated Code:
- Run the "Generate Code with Gemini" command from the command palette
- Enter a description of the code you want to create
- Choose whether to start typing the generated code immediately
-
Using Custom Text:
- Run the "Set Custom Text" command from the command palette
- Enter the text you want to type out
- Choose whether to start typing immediately
- Live Coding Demonstrations: Prepare your code beforehand and have it typed out as if you're coding in real-time.
- Presentations: Showcase code examples without typing mistakes or delays.
- Teaching: Focus on explaining concepts while code appears seamlessly.
- Brainstorming Sessions: Generate code solutions quickly using the Gemini AI integration.
If you encounter any issues or have suggestions for improvements, please feel free to open an issue or submit a pull request on GitHub.
The source code for this extension is available on GitHub.