Easily copy text from the editor by specifying a line numbers using CopyLineByNumber.
Features
Note: Works on any text file in the editor
Copy text from a specific line in the editor using the line number.
Copy text from a multiple lines in the editor using the line numbers range.
Optionally display messages in the status bar.
Configurable notifications and status bar message color.
Usage Example
Example 1, copy single line:
Press Alt + C
Enter the line number
Text from that line is copied to the clipboard
Example 2, copy range of lines:
Press Alt + C
Enter range of lines with splitter (/[:.,-_]/), ex 107-200
Text from line 107 to 200 are copied to the clipboard
Extension Settings
copyLineByNumber.showNotifications: Enable or disable notifications (default: true)
copyLineByNumber.statusBarText.enable: Enable or disable status bar notifications (default: true)
copyLineByNumber.statusBarText.color: Color of the status bar message (default: white)
copyLineByNumber.statusBarText.displayTimeout: Status bar message display timeout in milliseconds (default: 1500)
copyLineByNumber.statusBarText.alignment: Alignment of the status bar message, either "Left" or "Right" (default: "Left").
copyLineByNumber.statusBarText.priority: Status bar priority (default: 100).
copyLineByNumber.singleLineCopyAddNewLine.enable: Automatically add a newline when copying a single line (default: true).
copyLineByNumber.multiLineCopyAddNewLine.enable: Automatically add a newline when copying multiple line (default: true).
copyLineByNumber.autoEndAtFileEnd.enable: If enabled, when the end line exceeds the total number of lines in the editor, copy until the last line of the file automatically (default: false).