code: function () {
        const range = d.createRange();
        const selection = window.getSelection();
  
        range.selectNodeContents($sgCodeFill[0]);
        selection.removeAllRanges();
        selection.addRange(range);
      }
docs: Select the code where using cmd+a/ctrl+a.