This extension adds an action to vscode to duplicate the current selection.
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"
}
None.
Minor cleanups:
- added some documentation
- added licence
- code cleanup
- added some tests
- removed bug with multiple selection in backward copy
Initial release of DuplicateSelection. Does nothing else as what is mentioned in the features.
When using duplicateselection.action.copySelectionBackwardAction the message "Edits from command duplicateselection.action.copySelectionBackwardAction were not applied."
is displayed in the terminal.