The CopyGod extension for VS Code is designed to help developers by remembering previously copied code. It stores the last copied code snippets, and you can easily paste them back into your editor using shortcuts or by selecting from a list.
Features
Copy Code: Copies the selected text or the current line to the clipboard and stores it.
View Stored Codes: Allows you to view and select from previously copied code snippets.
Paste Code with Keybinds: Paste a previously copied code snippet using configurable keybindings.
Installation
To install the Copier extension:
Go to the Extensions view in VS Code.
Search for "copier" and install the extension.
Alternatively, you can install it directly from the marketplace using this link.
Commands
The extension provides the following commands and keybindings:
1. Copy Code
Keybinding: Ctrl + C (When the editor text is focused)
Description: Copies the selected code or the current line if no text is selected and stores it in memory.
2. View Stored Codes
Keybinding: Ctrl + Shift + V (When the editor text is focused)
Description: Opens a quick pick menu to view and select from the stored copied codes.
3. Paste Code with Keybinds
Keybindings:
Ctrl + Shift + 1 - Pastes the first stored code.
Ctrl + Shift + 2 - Pastes the second stored code.
Ctrl + Shift + 3 - Pastes the third stored code.
Description: Pastes a specific code from the stored list based on the corresponding keybinding.
How to Use
Copying Code: Select the text you want to copy in the editor and press Ctrl + C. If no text is selected, the current line will be copied instead.
Viewing Stored Codes: Press Ctrl + Shift + V to see the list of previously copied codes and choose one to paste.
Pasting Code: Use Ctrl + Shift + 1, Ctrl + Shift + 2, or Ctrl + Shift + 3 to paste a specific previously copied code snippet at the cursor's position.
Contribution
If you want to contribute to this extension, feel free to fork the repository, create a pull request, or open an issue with suggestions or bug reports.