https://github.com/dumitory-dev/vsc-copy-code-block
https://github.com/dumitory-dev/vsc-copy-code-block
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/dumitory-dev/vsc-copy-code-block
- Owner: dumitory-dev
- License: mit
- Created: 2025-02-26T11:33:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-02-27T15:58:47.000Z (over 1 year ago)
- Last Synced: 2025-06-09T08:14:59.694Z (12 months ago)
- Language: TypeScript
- Size: 68.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Code Block Copier
A VS Code extension that lets you copy code blocks with line numbers, file paths, and preserved formatting.
## Features
- **Line Numbers**: Automatically adds line numbers to the beginning of each line
- **File Path**: Includes the original file path in copied code
## Installation
1. Open VS Code
2. Go to Extensions view (Ctrl+Shift+X)
3. Search for "Code Block Copier"
4. Click Install
## How to Use
1. Select the code you want to copy
2. Press F1 and select "Code Block Copier: Copy Code Block"
3. Paste anywhere you need it
## Example Output
When you copy code, it will look like this:
```
path: src/example/file.ts
1: function greet(name: string): string {
2: return `Hello, ${name}!`;
3: }
4:
5: console.log(greet("World"));
```
## License
MIT License
---
**Enjoy coding and sharing!**