assuming has a line text "11 22 33 44" in VSCode, and now selection text is "33" (in selection mode),
I have below setting,
first pair (clipboardCopyAction + cancelSelection) work fine,
second pair (clipboardCutAction + cancelSelection) will delete current line !!?? (after cut "33" into clipboard)
"s": {
"condition": "selecting",
"true": [
"editor.action.clipboardCopyAction",
"modaledit.cancelSelection"
],
"false": "expandLineSelection" //then auto turn on selection mode
},
"x": {
"condition": "selecting",
"true": [
"editor.action.clipboardCutAction",
"modaledit.cancelSelection"
//------ below commands has same behavior :
//"modaledit.toggleSelection"
//"modaledit.enterNormal"
],
"false": "deleteRight"
},
assuming has a line text "11 22 33 44" in VSCode, and now selection text is "33" (in selection mode), I have below setting, first pair (clipboardCopyAction + cancelSelection) work fine, second pair (clipboardCutAction + cancelSelection) will delete current line !!?? (after cut "33" into clipboard) "s": { "condition": "selecting", "true": [ "editor.action.clipboardCopyAction", "modaledit.cancelSelection" ], "false": "expandLineSelection" //then auto turn on selection mode }, "x": { "condition": "selecting", "true": [ "editor.action.clipboardCutAction", "modaledit.cancelSelection" //------ below commands has same behavior : //"modaledit.toggleSelection" //"modaledit.enterNormal" ], "false": "deleteRight" },
thanks for any idea