https://github.com/kkapsner/vscode-duplicateselection
Extension for vscode to duplicate the selection.
https://github.com/kkapsner/vscode-duplicateselection
Last synced: 10 months ago
JSON representation
Extension for vscode to duplicate the selection.
- Host: GitHub
- URL: https://github.com/kkapsner/vscode-duplicateselection
- Owner: kkapsner
- License: mit
- Created: 2018-03-17T00:03:51.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-02-11T00:24:28.000Z (over 4 years ago)
- Last Synced: 2025-04-04T00:28:07.689Z (about 1 year ago)
- Language: TypeScript
- Size: 58.6 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# duplicateselection
This extension adds an action to vscode to duplicate the current selection.
## Features
Adds the action duplicateselection.action.copySelectionForwardAction and duplicateselection.action.copySelectionBackwardAction
To get a behaviour similar to SublimeText or Notepad++ you can use the following in your keybindings.json:
```
{
"key": "ctrl+d",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus && !editorReadonly && !editorHasSelection"
},
{
"key": "ctrl+d",
"command": "duplicateselection.action.copySelectionForwardAction",
"when": "editorTextFocus && !editorReadonly && editorHasSelection"
}
```
## Requirements
None.
## Release Notes
### 1.0.1
Minor cleanups:
* added some documentation
* added licence
* code cleanup
* added some tests
* removed bug with multiple selection in backward copy
### 1.0.0
Initial release of DuplicateSelection. Does nothing else as what is mentioned in the features.
## Known Issues
When using duplicateselection.action.copySelectionBackwardAction the message ```"Edits from command duplicateselection.action.copySelectionBackwardAction were not applied."``` is displayed in the terminal.