Q: Is there a way to edit a built-in command in VSCode? I like using the Toggle Block Comment command (editor.action.blockComment) with its default keybinding, but I don't like the fact that it only makes block comments that look like this
/*
I don't like this
*/

I want something more like this
/**
* Oh yeah...
**/

Is there a way to edit what the Toggle Block Comment command (editor.action.blockComment) does?

A: You can make your own custom extension to achieve this. Here is the code:
    let selectedText = activeEditor.document.getText(activeEditor.selection);
    selectedText = selectedText.replace(/^/gm, "* ");
    selectedText = '/** \n' + selectedText + '\n**/';

    activeEditor.edit((edittedText) => {
        edittedText.replace(activeEditor.selection, selectedText);
    })

I am also working on an extension where you will find exactly this. I will update the name once it hits the marketplace.
