vscode-codeFragments icon indicating copy to clipboard operation
vscode-codeFragments copied to clipboard

keyboard shortcuts

Open johnpapa opened this issue 7 years ago • 2 comments
trafficstars

have you considered adding keyboard shortcuts for inserting the fragments?

johnpapa avatar Apr 13 '18 01:04 johnpapa

Hi @johnpapa,

Not yet, I'm wondering how that could work.
Adding a shortcut for saving a fragment would be straightforward, I might take a crack at that.
But for inserting one, you have to select the fragment you want to insert from the list, so I'm not sure how that could be put on a hotkey.

markvincze avatar Apr 22 '18 10:04 markvincze

A simple way would be hotkey opening the command palette with a list of available fragments to choose from.

theSdev avatar Apr 23 '18 06:04 theSdev