yassh / vscode-copy-with-line-numbers Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
Hello,
Thank you for this very useful extension. I appreciate your work. By default, when copying with line numbers, the line numbers have a colon : Is there a way (or setting) to enable a period instead?
Currently:
1:
2:
3:
Desired goal:
1.
2.
3.
Thank you
Korean comment is not copied well in this plugin
will be great. i think should be easy for you
It is not working here. VS Code says the extension is running in the remote, so I believe it is copying on the remote clipboard machine and the clipboard is not updated locally.
If you copy and paste text directly from vscode to a google docs, the document keeps his syntax highlighting:
But when copying with this extension, the syntax highlighting is lost:
Related to:
You should probably mention in the README.md that xclip is a requirement on Linux for this extension.
Success message shows but copied text does not include number or file name.
About: VS Code
Version: 1.34.0
Commit: a622c65b2c713c890fcf4fbf07cf34049d5fe758
Date: 2019-05-15T21:55:35.507Z
Electron: 3.1.8
Chrome: 66.0.3359.181
Node.js: 10.2.0
V8: 6.6.346.32
OS: Linux x64 4.18.16-300.fc29.x86_64
title
And without code, just line number, like github
vscode-copy-with-line-numbers/src/extension.ts
Lines 6 to 8 in fe74f7d
And if this plugin can detect comment like this pattern fe74f7def9c75b6a4120b2df3c97e655e84f12c6/src/extension.ts#L6-L8
and mouse hover show the code, that's great.
This extension does not rely on the standard Clipboard.writeText which seems to cause issues :
It looks like simply ditching "copy-paste": "^1.3.0"
and calling the proper vscode function would fix a few issues but this project seems kind of dead...
Simple fix :
vscode-copy-with-line-numbers/src/copy-with-line-numbers.ts
Lines 67 to 70 in fe74f7d
await vscode.env.clipboard.writeText(str);
Hi, it would be great to have an option to paste copied lines with numbering starting from 1, e.g. after copying code:
67: copy(str, () => {
68: const showSuccessMessage = vscode.workspace.getConfiguration('copyWithLineNumbers')
69: if (showSuccessMessage) vscode.window.showInformationMessage('Copied!')
70: })
I would like to paste it as:
1: copy(str, () => {
2: const showSuccessMessage = vscode.workspace.getConfiguration('copyWithLineNumbers')
3: if (showSuccessMessage) vscode.window.showInformationMessage('Copied!')
4: })
Hello,
It looks like you used to maintain a version of this plugin for atom.
https://atom.io/packages/atom-copy-with-line-numbers
https://github.com/yassh/atom-copy-with-line-numbers
Any chance you could re-instate this repo? I'd be fine with the old code even if it has some compatibility issues with the current version of atom.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.